summaryrefslogtreecommitdiff
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
commit138333ed1f571cd6bb76c3be655f70e35cd48a99 (patch)
treea7d79fe7faf134363fc6519ae57942f7b6f879ae
parent03ccaab05f929a2ba7bd7727ea0fe055e1f0989f (diff)
downloadsamba-138333ed1f571cd6bb76c3be655f70e35cd48a99.tar.gz
samba-138333ed1f571cd6bb76c3be655f70e35cd48a99.tar.bz2
samba-138333ed1f571cd6bb76c3be655f70e35cd48a99.zip
We don't need to call endpwent if we never call getpwent.
Jeremy. (This used to be commit 27078d1292e8588956ae78e4cddb1bcebbe84478)
-rw-r--r--source3/client/mount.cifs.c2
1 files changed, 0 insertions, 2 deletions
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));
}