diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 02:42:37 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 02:42:37 +0000 |
commit | 7a7edf77ed9e9c982beedb84f2bd384acb7cfcdb (patch) | |
tree | 1f05666fcea178a3034ee7fbb9fd14a830bedcd9 /sshd.c | |
parent | 01426a67c86850a06af757c2661409f87ed05414 (diff) | |
download | openssh-git-7a7edf77ed9e9c982beedb84f2bd384acb7cfcdb.tar.gz |
- stevesk@cvs.openbsd.org 2002/03/19 03:03:43
[pathnames.h servconf.c servconf.h sshd.c]
_PATH_PRIVSEP_CHROOT_DIR; ok provos@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.231 2002/03/18 17:50:31 provos Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.232 2002/03/19 03:03:43 stevesk Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -533,8 +533,9 @@ privsep_preauth_child(void) demote_sensitive_data(); /* Change our root directory*/ - if (chroot(options.unprivileged_dir) == -1) - fatal("chroot(/var/empty)"); + if (chroot(_PATH_PRIVSEP_CHROOT_DIR) == -1) + fatal("chroot(\"%s\"): %s", _PATH_PRIVSEP_CHROOT_DIR, + strerror(errno)); if (chdir("/") == -1) fatal("chdir(/)"); |