summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:42:37 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-03-22 02:42:37 +0000
commit7a7edf77ed9e9c982beedb84f2bd384acb7cfcdb (patch)
tree1f05666fcea178a3034ee7fbb9fd14a830bedcd9 /sshd.c
parent01426a67c86850a06af757c2661409f87ed05414 (diff)
- 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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index c82603d58..c788ac016 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.231 2002/03/18 17:50:31 provos Exp $"); 45RCSID("$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