diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sshd.c | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -7,6 +7,8 @@ | |||
7 | - (dtucker) [configure.ac] Bug #748: Always define BROKEN_GETADDRINFO | 7 | - (dtucker) [configure.ac] Bug #748: Always define BROKEN_GETADDRINFO |
8 | for HP-UX 11.11. If there are known-good configs where this is not | 8 | for HP-UX 11.11. If there are known-good configs where this is not |
9 | required, please report them. ok djm@ | 9 | required, please report them. ok djm@ |
10 | - (dtucker) [sshd.c] Bug #757: Clear child's environment to prevent | ||
11 | accidentally inheriting from root's environment. ok djm@ | ||
10 | 12 | ||
11 | 20040129 | 13 | 20040129 |
12 | - (dtucker) OpenBSD CVS Sync regress/ | 14 | - (dtucker) OpenBSD CVS Sync regress/ |
@@ -1792,4 +1794,4 @@ | |||
1792 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. | 1794 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. |
1793 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au | 1795 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au |
1794 | 1796 | ||
1795 | $Id: ChangeLog,v 1.3208 2004/02/06 04:59:06 dtucker Exp $ | 1797 | $Id: ChangeLog,v 1.3209 2004/02/06 05:04:08 dtucker Exp $ |
@@ -101,6 +101,7 @@ extern char *__progname; | |||
101 | #else | 101 | #else |
102 | char *__progname; | 102 | char *__progname; |
103 | #endif | 103 | #endif |
104 | extern char **environ; | ||
104 | 105 | ||
105 | /* Server configuration options. */ | 106 | /* Server configuration options. */ |
106 | ServerOptions options; | 107 | ServerOptions options; |
@@ -1101,6 +1102,11 @@ main(int ac, char **av) | |||
1101 | unmounted if desired. */ | 1102 | unmounted if desired. */ |
1102 | chdir("/"); | 1103 | chdir("/"); |
1103 | 1104 | ||
1105 | #ifndef HAVE_CYGWIN | ||
1106 | /* Clear environment */ | ||
1107 | environ[0] = NULL; | ||
1108 | #endif | ||
1109 | |||
1104 | /* ignore SIGPIPE */ | 1110 | /* ignore SIGPIPE */ |
1105 | signal(SIGPIPE, SIG_IGN); | 1111 | signal(SIGPIPE, SIG_IGN); |
1106 | 1112 | ||