about summary refs log tree commit diff
path: root/nscd/aicache.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-20 23:16:22 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-20 23:16:22 +0000
commit3c12b91ade6e271cb17ecaae526d959bc7e40098 (patch)
tree72eb96187b8b05e73c12393d1fcac889006e4fbb /nscd/aicache.c
parent65f0beb9c5c3badb9da924f85a41c6f847bc1d0f (diff)
downloadglibc-3c12b91ade6e271cb17ecaae526d959bc7e40098.tar.gz
glibc-3c12b91ade6e271cb17ecaae526d959bc7e40098.tar.xz
glibc-3c12b91ade6e271cb17ecaae526d959bc7e40098.zip
Update.
2004-09-20  Ulrich Drepper  <drepper@redhat.com>

	* nscd/nscd.c (options): Mark S option as hidden.
	(parse_opt): When S option is used, print warning message.
	* nscd/grpcache.c (adgrptbyX): Don't handle secure mode.
	* nscd/hstcache.c (addhstbyX): Don't handle secure mode.
	* nscd/aicache.c (addhstaiX): Don't handle secure mode.
	* nscd/pwdcache.c (addpwbyX): Don't handle secure mode.
Diffstat (limited to 'nscd/aicache.c')
-rw-r--r--nscd/aicache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c
index 8c2f3f1489..4e0496ff44 100644
--- a/nscd/aicache.c
+++ b/nscd/aicache.c
@@ -58,7 +58,6 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req,
      look again in the table whether the dataset is now available.  We
      simply insert it.  It does not matter if it is in there twice.  The
      pruning function only will look at the timestamp.  */
-  uid_t oldeuid = 0;
 
   /* We allocate all data in one memory block: the iov vector,
      the response header and the dataset itself.  */
@@ -77,11 +76,14 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req,
 	dbg_log (_("Reloading \"%s\" in hosts cache!"), (char *) key);
     }
 
+#if 0
+  uid_t oldeuid = 0;
   if (db->secure)
     {
       oldeuid = geteuid ();
       pthread_seteuid_np (uid);
     }
+#endif
 
   static service_user *hosts_database;
   service_user *nip = NULL;
@@ -425,8 +427,10 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req,
  out:
   _res.options = old_res_options;
 
+#if 0
   if (db->secure)
     pthread_seteuid_np (oldeuid);
+#endif
 
   if (dataset != NULL && !alloca_used)
     {