summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-01 17:01:34 +0000
committerJeremy Allison <jra@samba.org>2000-06-01 17:01:34 +0000
commitc2099cfb033c2cdb6035f4f7f50ce21b98e1584d (patch)
treeebd66d1339c8c2664c4c655acb464b4125dd4c30 /source/auth
parent864e7bde0e804edbb2425b9c4c7ff271553f8169 (diff)
downloadsamba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.tar.gz
samba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.tar.xz
samba-c2099cfb033c2cdb6035f4f7f50ce21b98e1584d.zip
Getting back to a compilable state (not there yet but close).
Added patches for random -> sys_random. Added set_effective_xxx patches for AFS code. Memory allocation changes in spoolss code. Jeremy.
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/pass_check.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/source/auth/pass_check.c b/source/auth/pass_check.c
index 0496ed9961f..aea543d8539 100644
--- a/source/auth/pass_check.c
+++ b/source/auth/pass_check.c
@@ -353,20 +353,8 @@ static BOOL dfs_auth(char *user, char *password)
egid = getegid();
- if (set_effective_gid(pw->pw_gid) != 0)
- {
- DEBUG(0, ("Can't set egid to %d (%s)\n",
- pw->pw_gid, strerror(errno)));
- return False;
- }
-
- if (set_effective_uid(pw->pw_uid) != 0)
- {
- set_effective_gid(egid);
- DEBUG(0, ("Can't set euid to %d (%s)\n",
- pw->pw_uid, strerror(errno)));
- return False;
- }
+ set_effective_gid(pw->pw_gid);
+ set_effective_uid(pw->pw_uid);
if (sec_login_setup_identity((unsigned char *)user,
sec_login_no_flags,