summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-10-18 22:51:31 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-10-18 22:51:31 +1000
commit78802f0af361d90b5e8975cc3f24d35b4fda215f (patch)
tree13002d39cb038360b633699eeec27f16ff93221c /sshd.c
parentffe88e15afeb403e775d87cd45ae4bd5f1203172 (diff)
- (dtucker) [sshd.c] Reshuffle storing of pw struct; prevents warnings
on older versions of OS X. ok djm@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 6159a5b6a..06ec03b20 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1436,8 +1436,9 @@ main(int ac, char **av)
1436 fatal("Privilege separation user %s does not exist", 1436 fatal("Privilege separation user %s does not exist",
1437 SSH_PRIVSEP_USER); 1437 SSH_PRIVSEP_USER);
1438 memset(privsep_pw->pw_passwd, 0, strlen(privsep_pw->pw_passwd)); 1438 memset(privsep_pw->pw_passwd, 0, strlen(privsep_pw->pw_passwd));
1439 privsep_pw->pw_passwd = "*";
1440 privsep_pw = pwcopy(privsep_pw); 1439 privsep_pw = pwcopy(privsep_pw);
1440 xfree(privsep_pw->pw_passwd);
1441 privsep_pw->pw_passwd = xstrdup("*");
1441 endpwent(); 1442 endpwent();
1442 1443
1443 /* load private host keys */ 1444 /* load private host keys */