This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

patch for nscd



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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]