- djm@cvs.openbsd.org 2003/05/24 09:30:40
[authfile.c monitor.c sftp-common.c sshpty.c] cast some types for printing; ok markus@ (missed a hunk)
This commit is contained in:
parent
0652348e92
commit
9155a681fd
2
sshd.c
2
sshd.c
|
@ -565,7 +565,7 @@ privsep_preauth_child(void)
|
||||||
#else
|
#else
|
||||||
gidset[0] = pw->pw_gid;
|
gidset[0] = pw->pw_gid;
|
||||||
if (setgid(pw->pw_gid) < 0)
|
if (setgid(pw->pw_gid) < 0)
|
||||||
fatal("setgid failed for %u", pw->pw_gid );
|
fatal("setgid failed for %u", (u_int)pw->pw_gid );
|
||||||
if (setgroups(1, gidset) < 0)
|
if (setgroups(1, gidset) < 0)
|
||||||
fatal("setgroups: %.100s", strerror(errno));
|
fatal("setgroups: %.100s", strerror(errno));
|
||||||
permanently_set_uid(pw);
|
permanently_set_uid(pw);
|
||||||
|
|
Loading…
Reference in New Issue