diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.246 2002/06/20 23:05:56 markus Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.247 2002/06/22 16:40:19 stevesk Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -1012,6 +1012,9 @@ main(int ac, char **av) | |||
1012 | (S_ISDIR(st.st_mode) == 0)) | 1012 | (S_ISDIR(st.st_mode) == 0)) |
1013 | fatal("Missing privilege separation directory: %s", | 1013 | fatal("Missing privilege separation directory: %s", |
1014 | _PATH_PRIVSEP_CHROOT_DIR); | 1014 | _PATH_PRIVSEP_CHROOT_DIR); |
1015 | if (st.st_uid != 0 || (st.st_mode & (S_IWGRP|S_IWOTH)) != 0) | ||
1016 | fatal("Bad owner or mode for %s", | ||
1017 | _PATH_PRIVSEP_CHROOT_DIR); | ||
1015 | } | 1018 | } |
1016 | 1019 | ||
1017 | /* Configuration looks good, so exit if in test mode. */ | 1020 | /* Configuration looks good, so exit if in test mode. */ |