search for: exit_fail

Displaying 1 result from an estimated 1 matches for "exit_fail".

Did you mean: eai_fail
2007 Jun 04
8
Bug in Configurator.change_privilege?
...source for the linux coreutils ''su'' command, which is very similar: /* Become the user and group(s) specified by PW. */ static void change_identity (const struct passwd *pw) { #ifdef HAVE_INITGROUPS errno = 0; if (initgroups (pw->pw_name, pw->pw_gid) == -1) error (EXIT_FAIL, errno, _("cannot set groups")); endgrent (); #endif if (setgid (pw->pw_gid)) error (EXIT_FAIL, errno, _("cannot set group id")); if (setuid (pw->pw_uid)) error (EXIT_FAIL, errno, _("cannot set user id")); } This patch seems to solve the problem fo...