From 138333ed1f571cd6bb76c3be655f70e35cd48a99 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 13 Dec 2007 17:25:26 -0800 Subject: We don't need to call endpwent if we never call getpwent. Jeremy. (This used to be commit 27078d1292e8588956ae78e4cddb1bcebbe84478) --- source3/client/mount.cifs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/client/mount.cifs.c') diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index c89a477ef9..ec245ed200 100644 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -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)); } -- cgit