diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-10-07 15:04:48 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-10-07 15:04:48 +0000 |
commit | 7c135d499409d4ddedb978f681559dae90ac4288 (patch) | |
tree | 5259d03ba042d26f7b8694215e2ef243a61e669e /source/smbd/uid.c | |
parent | 13c3a05093ab49908f8357017051d680dbc633eb (diff) | |
download | samba-7c135d499409d4ddedb978f681559dae90ac4288.tar.gz |
- 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
Diffstat (limited to 'source/smbd/uid.c')
-rw-r--r-- | source/smbd/uid.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c index 9312a447a08..f7005b53cf2 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -31,6 +31,8 @@ static int initial_gid; /* what user is current? */ struct current_user current_user; +extern pstring OriginalDir; + /**************************************************************************** initialise the uid routines ****************************************************************************/ @@ -54,7 +56,7 @@ void init_uid(void) current_user.cnum = -1; - ChDir(IDLE_DIR); + ChDir(OriginalDir); } @@ -280,7 +282,7 @@ BOOL unbecome_user(void ) if (current_user.cnum == -1) return(False); - ChDir(IDLE_DIR); + ChDir(OriginalDir); if (initial_uid == 0) { @@ -317,9 +319,9 @@ BOOL unbecome_user(void ) current_user.uid = initial_uid; current_user.gid = initial_gid; - if (ChDir(IDLE_DIR) != 0) + if (ChDir(OriginalDir) != 0) DEBUG(0,("%s chdir(%s) failed in unbecome_user\n", - timestring(),IDLE_DIR)); + timestring(),OriginalDir)); DEBUG(5,("unbecome_user now uid=(%d,%d) gid=(%d,%d)\n", getuid(),geteuid(),getgid(),getegid())); |