diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-20 23:16:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-20 23:16:22 +0000 |
commit | 3c12b91ade6e271cb17ecaae526d959bc7e40098 (patch) | |
tree | 72eb96187b8b05e73c12393d1fcac889006e4fbb /nscd/hstcache.c | |
parent | 65f0beb9c5c3badb9da924f85a41c6f847bc1d0f (diff) | |
download | glibc-3c12b91ade6e271cb17ecaae526d959bc7e40098.tar.gz |
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/hstcache.c')
-rw-r--r-- | nscd/hstcache.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nscd/hstcache.c b/nscd/hstcache.c index d001e6526c..99d2998f49 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -419,7 +419,6 @@ addhstbyX (struct database_dyn *db, int fd, request_header *req, char *buffer = (char *) alloca (buflen); struct hostent resultbuf; struct hostent *hst; - uid_t oldeuid = 0; bool use_malloc = false; int errval = 0; @@ -439,11 +438,14 @@ addhstbyX (struct database_dyn *db, int fd, request_header *req, dbg_log (_("Reloading \"%s\" in hosts cache!"), (char *) str); } +#if 0 + uid_t oldeuid = 0; if (db->secure) { oldeuid = geteuid (); pthread_seteuid_np (uid); } +#endif while (lookup (req->type, key, &resultbuf, buffer, buflen, &hst) != 0 && h_errno == NETDB_INTERNAL @@ -479,8 +481,10 @@ addhstbyX (struct database_dyn *db, int fd, request_header *req, buffer = (char *) extend_alloca (buffer, buflen, buflen + INCR); } +#if 0 if (db->secure) pthread_seteuid_np (oldeuid); +#endif cache_addhst (db, fd, req, key, hst, uid, he, dh, h_errno == TRY_AGAIN ? errval : 0); |