diff options
Diffstat (limited to 'sftp-server-main.c')
-rw-r--r-- | sftp-server-main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sftp-server-main.c b/sftp-server-main.c index c6ccd623e..6230d897d 100644 --- a/sftp-server-main.c +++ b/sftp-server-main.c | |||
@@ -43,6 +43,8 @@ main(int argc, char **argv) | |||
43 | /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ | 43 | /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |
44 | sanitise_stdfd(); | 44 | sanitise_stdfd(); |
45 | 45 | ||
46 | seed_rng(); | ||
47 | |||
46 | if ((user_pw = getpwuid(getuid())) == NULL) { | 48 | if ((user_pw = getpwuid(getuid())) == NULL) { |
47 | fprintf(stderr, "No user found for uid %lu\n", | 49 | fprintf(stderr, "No user found for uid %lu\n", |
48 | (u_long)getuid()); | 50 | (u_long)getuid()); |