diff options
Diffstat (limited to 'source3/lsarpcd/lsarpcd.c')
-rw-r--r-- | source3/lsarpcd/lsarpcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lsarpcd/lsarpcd.c b/source3/lsarpcd/lsarpcd.c index 3c883029f0..ed665e85c5 100644 --- a/source3/lsarpcd/lsarpcd.c +++ b/source3/lsarpcd/lsarpcd.c @@ -40,6 +40,7 @@ extern int DEBUGLEVEL; extern fstring remote_machine; extern pstring myhostname; +extern pstring OriginalDir; /**************************************************************************** when exiting, take the whole family @@ -456,6 +457,8 @@ static void usage(char *pname) so set our umask to 0 */ umask(0); + dos_GetWd(OriginalDir); + init_uid(); /* this is for people who can't start the program correctly */ |