summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-13 17:25:26 -0800
committerJeremy Allison <jra@samba.org>2007-12-13 17:25:26 -0800
commit27078d1292e8588956ae78e4cddb1bcebbe84478 (patch)
treebc85748e194b234fcb8c439707702cc5592dea4b /source/client
parent7fad5f38ea86ef76dc8e0853926b3248230616be (diff)
downloadsamba-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.c2
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));
}