git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ccaab
)
We don't need to call endpwent if we never call getpwent.
author
Jeremy Allison
<jra@samba.org>
Fri, 14 Dec 2007 01:25:26 +0000
(17:25 -0800)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index c89a477ef9a5d4c5dfe2fdf463a56e43a9e30b48..ec245ed200054df70778adbd44980d921711c8f2 100644
(file)
--- 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));
}