patch for nscd
Thorsten Kukuk
kukuk@suse.de
Thu Mar 16 07:07:00 GMT 2000
Hi,
The following patch is necessary for glibc 2.1 and glibc 2.2:
2000-03-16 Thorsten Kukuk <kukuk@suse.de>
* nscd/hstcache.c: Restore correct UID.
* nscd/pwdcache.c: Likewise.
Patch from Gabor Gombas <gombasg@inf.elte.hu>
--- nscd/hstcache.c
+++ nscd/hstcache.c 2000/03/16 13:32:39
@@ -318,7 +318,7 @@
}
if (secure[hstdb])
- seteuid (uid);
+ seteuid (oldeuid);
cache_addhst (db, fd, req, key, hst, uid);
}
--- nscd/pwdcache.c
+++ nscd/pwdcache.c 2000/03/16 13:31:11
@@ -224,7 +224,7 @@
}
if (secure[pwddb])
- seteuid (c_uid);
+ seteuid (oldeuid);
cache_addpw (db, fd, req, key, pwd, c_uid);
}
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
More information about the Libc-hacker
mailing list