diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-13 17:25:26 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-13 17:25:26 -0800 |
commit | 27078d1292e8588956ae78e4cddb1bcebbe84478 (patch) | |
tree | bc85748e194b234fcb8c439707702cc5592dea4b /source/client | |
parent | 7fad5f38ea86ef76dc8e0853926b3248230616be (diff) | |
download | samba-27078d1292e8588956ae78e4cddb1bcebbe84478.tar.gz samba-27078d1292e8588956ae78e4cddb1bcebbe84478.tar.xz samba-27078d1292e8588956ae78e4cddb1bcebbe84478.zip |
We don't need to call endpwent if we never call getpwent.
Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/mount.cifs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index c89a477ef9a..ec245ed2000 100644 --- a/source/client/mount.cifs.c +++ b/source/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)); } |