diff options
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 5db62426ca..2dc78e0176 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -67,6 +67,7 @@ static int num_connections_open = 0; extern fstring remote_machine; +pstring OriginalDir; /* these can be set by some functions to override the error codes */ int unix_ERR_class=SUCCESS; @@ -3618,6 +3619,8 @@ static void usage(char *pname) so set our umask to 0 */ umask(0); + GetWd(OriginalDir); + init_uid(); /* this is for people who can't start the program correctly */ |