View | Details | Raw Unified | Return to bug 2106
Collapse All | Expand All

(-)session.c (-1 / +2 lines)
Lines 51-56 Link Here
51
#include <stdio.h>
51
#include <stdio.h>
52
#include <stdlib.h>
52
#include <stdlib.h>
53
#include <string.h>
53
#include <string.h>
54
#include <time.h>
54
#include <unistd.h>
55
#include <unistd.h>
55
56
56
#include "xmalloc.h"
57
#include "xmalloc.h"
Lines 1173-1179 safely_chroot(const char *path, uid_t ui Link Here
1173
			    cp == NULL ? "" : "component ", component);
1174
			    cp == NULL ? "" : "component ", component);
1174
1175
1175
	}
1176
	}
1176
1177
	tzset();
1177
	if (chdir(path) == -1)
1178
	if (chdir(path) == -1)
1178
		fatal("Unable to chdir to chroot path \"%s\": "
1179
		fatal("Unable to chdir to chroot path \"%s\": "
1179
		    "%s", path, strerror(errno));
1180
		    "%s", path, strerror(errno));
(-)sftp-server-main.c (-1 / +2 lines)
Lines 19-24 Link Here
19
#include <pwd.h>
19
#include <pwd.h>
20
#include <stdarg.h>
20
#include <stdarg.h>
21
#include <stdio.h>
21
#include <stdio.h>
22
#include <time.h>
22
#include <unistd.h>
23
#include <unistd.h>
23
24
24
#include "log.h"
25
#include "log.h"
Lines 44-49 main(int argc, char **argv) Link Here
44
		    (u_long)getuid());
45
		    (u_long)getuid());
45
		return 1;
46
		return 1;
46
	}
47
	}
47
48
	tzset();
48
	return (sftp_server_main(argc, argv, user_pw));
49
	return (sftp_server_main(argc, argv, user_pw));
49
}
50
}

Return to bug 2106