> - if (syscall(SYS_setresgid, pw->pw_gid, pw->pw_gid, pw->pw_gid) != 0) { > +#ifdef __NR_setresuid32 > + res = syscall(SYS_setresgid32, pw->pw_gid, pw->pw_gid, pw->pw_gid); > +#else > + res = syscall(SYS_setresgid, pw->pw_gid, pw->pw_gid, pw->pw_gid); > +#endif I think you want to simply call setresuid/setresgid from glibcs, which will do the right thing instead of doing hand crafted syscalls. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html