Return to sftp-server-main.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.4, 2009/02/21 19:32:04 | version 1.5, 2016/02/15 09:47:49 | ||
---|---|---|---|
|
|
||
#include "log.h" | #include "log.h" | ||
#include "sftp.h" | #include "sftp.h" | ||
#include "misc.h" | #include "misc.h" | ||
#include "xmalloc.h" | |||
void | void | ||
cleanup_exit(int i) | cleanup_exit(int i) | ||
|
|
||
{ | { | ||
struct passwd *user_pw; | struct passwd *user_pw; | ||
ssh_malloc_init(); /* must be called before any mallocs */ | |||
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ | /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ | ||
sanitise_stdfd(); | sanitise_stdfd(); | ||