git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8824374
)
We don't need to call endpwent if we never call getpwent.
author
Jeremy Allison
<jra@samba.org>
Fri, 14 Dec 2007 01:25:28 +0000
(17:25 -0800)
committer
Jeremy Allison
<jra@samba.org>
Fri, 14 Dec 2007 01:25:28 +0000
(17:25 -0800)
Jeremy.
source/client/mount.cifs.c
patch
|
blob
|
history
diff --git
a/source/client/mount.cifs.c
b/source/client/mount.cifs.c
index 73288db3df4f15a50a304bab32da117d768f303e..33da1a25d9280b7b7cda3f259aed15264043575d 100755
(executable)
--- a/
source/client/mount.cifs.c
+++ b/
source/client/mount.cifs.c
@@
-542,7
+542,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));
}
@@
-559,7
+558,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));
}