View | Details | Raw Unified | Return to bug 2900
Collapse All | Expand All

(-)a/auth.c (+4 lines)
Lines 946-951 subprocess(const char *tag, struct passwd *pw, const char *command, Link Here
946
		}
946
		}
947
		closefrom(STDERR_FILENO + 1);
947
		closefrom(STDERR_FILENO + 1);
948
948
949
		if (initgroups(pw->pw_name, pw->pw_gid) == -1) {
950
			error("%s: initgroups %s %u: %s", tag, pw->pw_name,
951
			    (u_int)pw->pw_gid, strerror(errno));
952
		}
949
		/* Don't use permanently_set_uid() here to avoid fatal() */
953
		/* Don't use permanently_set_uid() here to avoid fatal() */
950
		if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) {
954
		if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) {
951
			error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid,
955
			error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid,

Return to bug 2900