]> sourceware.org Git - newlib-cygwin.git/commitdiff
Drop unused timeoput paramter to internal_getlogin
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Mar 2015 14:42:59 +0000 (15:42 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Mar 2015 14:42:59 +0000 (15:42 +0100)
* grp.cc (internal_getgroups): Drop unused timeout parameter.
* pwdgrp.h (internal_getgroups): Ditto in prototype.
* uinfo.cc (internal_getlogin): Ditto in usage.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/grp.cc
winsup/cygwin/pwdgrp.h
winsup/cygwin/uinfo.cc

index 97b8104b318e5b1fc75adfe1dc1df6075a17ea00..acc3205ebd14b0fad46714af716ca12c96a59fcd 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-17  Corinna Vinschen  <corinna@vinschen.de>
+
+       * grp.cc (internal_getgroups): Drop unused timeout parameter.
+       * pwdgrp.h (internal_getgroups): Ditto in prototype.
+       * uinfo.cc (internal_getlogin): Ditto in usage.
+
 2015-03-17  Corinna Vinschen  <corinna@vinschen.de>
 
        * spawn.cc (find_exec): Fix a name change in case of a symlink which
index 5e5f1d810d5b2949464f42c3602145b210d09aa9..e1f5e4b23b8a2a499a96ecfae73125a232451ccb 100644 (file)
@@ -552,12 +552,8 @@ endgrent_filtered (void *gr)
   ((gr_ent *) gr)->endgrent ();
 }
 
-/* timeout_ns (in 100ns units) is set to non-0 when called from
-   internal_getlogin.  This restricts fetching of the user's groups at process
-   tree startup to a (hopefully) bearable time.  */
 int
-internal_getgroups (int gidsetsize, gid_t *grouplist, cyg_ldap *pldap,
-                   const DWORD timeout_ns)
+internal_getgroups (int gidsetsize, gid_t *grouplist, cyg_ldap *pldap)
 {
   NTSTATUS status;
   HANDLE tok;
index fe0cd8b6b7e1c247fbcfdf46f10530ae3da7e26b..8a78d305f8d6b2af4018a9b530a34432f901bd14 100644 (file)
@@ -28,7 +28,7 @@ extern struct group *internal_getgrsid_from_db (cygpsid &sid);
 extern struct group *internal_getgrgid (gid_t, cyg_ldap * = NULL);
 extern struct group *internal_getgrnam (const char *, cyg_ldap * = NULL);
 
-extern int internal_getgroups (int, gid_t *, cyg_ldap *, const DWORD = 0);
+extern int internal_getgroups (int, gid_t *, cyg_ldap *);
 
 /* These functions are called from mkpasswd/mkgroup via cygwin_internal. */
 void *setpwent_filtered (int enums, PCWSTR enum_tdoms);
index 40e960a602c73965bc7f5077d04dbfbdb3f76b34..b1025b02cf6e203c0216387c0fc0fb8e16f0deb1 100644 (file)
@@ -125,7 +125,7 @@ internal_getlogin (cygheap_user &user)
   pwd = internal_getpwsid (user.sid (), &cldap);
   pgrp = internal_getgrsid (user.groups.pgsid, &cldap);
   if (!cygheap->pg.nss_cygserver_caching ())
-    internal_getgroups (0, NULL, &cldap, 3000000U); /* 300ms in 100ns units */
+    internal_getgroups (0, NULL, &cldap);
   if (!pwd)
     debug_printf ("user not found in passwd DB");
   else
This page took 0.034303 seconds and 5 git commands to generate.