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

source3/client/mount.cifs.c

index c89a477ef9a5d4c5dfe2fdf463a56e43a9e30b48..ec245ed200054df70778adbd44980d921711c8f2 100644 (file)
@@ -541,7 +541,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));
                                }
@@ -558,7 +557,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));
                                }