diff options
author | Tim Rice <tim@multitalents.net> | 2014-01-21 02:59:28 +0100 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2014-01-21 02:59:28 +0100 |
commit | 9464ba6fb34bb42eb3501ec3c5143662e75674bf (patch) | |
tree | 22e065163b64b0eb5ca196f55f3499a3049ca6e9 /session.c | |
parent | - (dtucker) [aclocal.m4] Differentiate between compile-time and link-time (diff) | |
download | openssh-9464ba6fb34bb42eb3501ec3c5143662e75674bf.tar.xz openssh-9464ba6fb34bb42eb3501ec3c5143662e75674bf.zip |
- (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced
with sftp chroot support. Move set_id call after chroot.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1552,6 +1552,11 @@ do_setusercontext(struct passwd *pw) */ (void) setusercontext(lc, pw, pw->pw_uid, LOGIN_SETUMASK); #else +# ifdef USE_LIBIAF + if (set_id(pw->pw_name) != 0) { + exit(1); + } +# endif /* USE_LIBIAF */ /* Permanently switch to the desired uid. */ permanently_set_uid(pw); #endif |