]> andersk Git - moira.git/commitdiff
Redo support for users with fsgroups.
authorzacheiss <zacheiss>
Tue, 24 Jul 2001 20:50:32 +0000 (20:50 +0000)
committerzacheiss <zacheiss>
Tue, 24 Jul 2001 20:50:32 +0000 (20:50 +0000)
incremental/winad/winad.c

index 4d886486d795e5e086606e67241a45379a00a79c..af52f77b1896157243d3db9ae666c04e8aa14e79 100755 (executable)
@@ -2359,15 +2359,21 @@ int user_update(LDAP *ldap_handle, char *dn_path, char *user_name,
       i = 0;
       while (hp[i] != NULL)
         {
-          sscanf(hp[i], "%*s %s", cPath);
-          if (strlen(cPath) && strnicmp(cPath, AFS, strlen(AFS)) == 0)
+          if (sscanf(hp[i], "%*s %s", cPath))
             {
-              sscanf(hp[i], "%*s %*s %*s %*s %s", cWeight);
-              if (atoi(cWeight) < last_weight)
+              if (strnicmp(cPath, AFS, strlen(AFS)) == 0)
                 {
-                  strcpy(path, cPath);
-                  last_weight = (int)atoi(cWeight);
-                } 
+                  if (sscanf(hp[i], "%*s %*s %*s %*s %s", cWeight))
+                    {
+                      if (atoi(cWeight) < last_weight)
+                        {
+                          strcpy(path, cPath);
+                          last_weight = (int)atoi(cWeight);
+                        }
+                    }
+                  else 
+                    strcpy(path, cPath);
+                }
             }
           ++i;
         }
This page took 0.095118 seconds and 5 git commands to generate.