summary refs log tree commit diff
path: root/nscd/pwdcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/pwdcache.c')
-rw-r--r--nscd/pwdcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 2e54a773ff..32da08ee03 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -224,7 +224,7 @@ addpwbyname (struct database *db, int fd, request_header *req,
     }
 
   if (secure[pwddb])
-    seteuid (c_uid);
+    seteuid (oldeuid);
 
   cache_addpw (db, fd, req, key, pwd, c_uid);
 }