diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-03-20 21:08:09 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2002-03-20 21:08:09 +0000 |
commit | d008c58f9870f56525a1a659e498df9d7ba6fdb8 (patch) | |
tree | b353a9cfba803d1536d99bb4537cc19b43ea05c6 | |
parent | 532e8762fdd1299c6042711b62799a1610d1c674 (diff) |
strerror() on chdir() fail; ok provos@
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 93241f5d25d..e3374f8c4b0 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.235 2002/03/20 19:12:25 stevesk Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.236 2002/03/20 21:08:08 stevesk Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -534,7 +534,7 @@ privsep_preauth_child(void) fatal("chroot(\"%s\"): %s", _PATH_PRIVSEP_CHROOT_DIR, strerror(errno)); if (chdir("/") == -1) - fatal("chdir(/)"); + fatal("chdir(\"/\"): %s", strerror(errno)); /* Drop our privileges */ debug3("privsep user:group %u:%u", (u_int)pw->pw_uid, |