summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-07 15:04:48 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-07 15:04:48 +0000
commitec85f2e53d18a818440cf716ad6b6892594cae85 (patch)
tree8793c810f9b935a740ea4ad013671c9e50fb6ce6 /source3/smbd/server.c
parent426d930adb9f816053b6cb3ea0696c1a8ad38d3c (diff)
downloadsamba-ec85f2e53d18a818440cf716ad6b6892594cae85.tar.gz
samba-ec85f2e53d18a818440cf716ad6b6892594cae85.tar.bz2
samba-ec85f2e53d18a818440cf716ad6b6892594cae85.zip
- revert to old idle dir code (marty pointed out a problem with the
new code) - handle server level security in the new "detect NT password length stuffups" code (This used to be commit 7c135d499409d4ddedb978f681559dae90ac4288)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c3
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 */