diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.231 2002/03/18 17:50:31 provos Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.232 2002/03/19 03:03:43 stevesk Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -533,8 +533,9 @@ privsep_preauth_child(void) | |||
533 | demote_sensitive_data(); | 533 | demote_sensitive_data(); |
534 | 534 | ||
535 | /* Change our root directory*/ | 535 | /* Change our root directory*/ |
536 | if (chroot(options.unprivileged_dir) == -1) | 536 | if (chroot(_PATH_PRIVSEP_CHROOT_DIR) == -1) |
537 | fatal("chroot(/var/empty)"); | 537 | fatal("chroot(\"%s\"): %s", _PATH_PRIVSEP_CHROOT_DIR, |
538 | strerror(errno)); | ||
538 | if (chdir("/") == -1) | 539 | if (chdir("/") == -1) |
539 | fatal("chdir(/)"); | 540 | fatal("chdir(/)"); |
540 | 541 | ||