diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-10-18 22:51:31 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-10-18 22:51:31 +1000 |
commit | 78802f0af361d90b5e8975cc3f24d35b4fda215f (patch) | |
tree | 13002d39cb038360b633699eeec27f16ff93221c /sshd.c | |
parent | ffe88e15afeb403e775d87cd45ae4bd5f1203172 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |