We don't need to call endpwent if we never call getpwent.
authorJeremy Allison <jra@samba.org>
Fri, 14 Dec 2007 01:25:28 +0000 (17:25 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 14 Dec 2007 01:25:28 +0000 (17:25 -0800)
Jeremy.

source/client/mount.cifs.c

index 73288db3df4f15a50a304bab32da117d768f303e..33da1a25d9280b7b7cda3f259aed15264043575d 100755 (executable)
@@ -542,7 +542,6 @@ static int parse_options(char ** optionsp, int * filesys_flags)
                                                exit(1);
                                        }
                                        snprintf(user, sizeof(user), "%u", pw->pw_uid);
-                                       endpwent();
                                } else {
                                        strlcpy(user,value,sizeof(user));
                                }
@@ -559,7 +558,6 @@ static int parse_options(char ** optionsp, int * filesys_flags)
                                                exit(1);
                                        }
                                        snprintf(group, sizeof(group), "%u", gr->gr_gid);
-                                       endpwent();
                                } else {
                                        strlcpy(group,value,sizeof(group));
                                }