diff options
author | 2001-04-06 21:00:04 +0000 | |
---|---|---|
committer | 2001-04-06 21:00:04 +0000 | |
commit | b26ac5ca2b15cdb331f67d05f000bc7ab339b229 (patch) | |
tree | 79130ce6715999a340562ac6586a5ada19e32786 /usr.bin/ssh/channels.c | |
parent | Replace FFS directory preference algorithm(dirpref) by new one. (diff) | |
download | wireguard-openbsd-b26ac5ca2b15cdb331f67d05f000bc7ab339b229.tar.xz wireguard-openbsd-b26ac5ca2b15cdb331f67d05f000bc7ab339b229.zip |
do gid/groups-swap in addition to uid-swap, should help if /home/group
is chmod 750 + chgrp grp /home/group/, work be deraadt and me, thanks
to olar@openwall.com is comments. we had many requests for this.
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r-- | usr.bin/ssh/channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index a24bc8dcb37..1585b960bf8 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: channels.c,v 1.101 2001/04/05 10:42:48 markus Exp $"); +RCSID("$OpenBSD: channels.c,v 1.102 2001/04/06 21:00:10 markus Exp $"); #include <openssl/rsa.h> #include <openssl/dsa.h> @@ -2353,7 +2353,7 @@ auth_input_request_forwarding(struct passwd * pw) fatal("Protocol error: authentication forwarding requested twice."); /* Temporarily drop privileged uid for mkdir/bind. */ - temporarily_use_uid(pw->pw_uid); + temporarily_use_uid(pw); /* Allocate a buffer for the socket name, and format the name. */ channel_forwarded_auth_socket_name = xmalloc(MAX_SOCKET_NAME); |