git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b1670
)
Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
author
Jeremy Allison
<jra@samba.org>
Thu, 15 May 2003 17:23:37 +0000
(17:23 +0000)
committer
Jeremy Allison
<jra@samba.org>
Thu, 15 May 2003 17:23:37 +0000
(17:23 +0000)
Jeremy.
(This used to be commit
9202362ee13c14bd7127713e3976bb9ee11038df
)
source3/utils/net_groupmap.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_groupmap.c
b/source3/utils/net_groupmap.c
index f4cd8c13a6f294b12f41b687772771a2a2ba015e..905fdf6287101acb536c68c0b93b754ffaa7bd66 100644
(file)
--- a/
source3/utils/net_groupmap.c
+++ b/
source3/utils/net_groupmap.c
@@
-271,7
+271,7
@@
int net_groupmap_add(int argc, const char **argv)
if (ntcomment[0])
fstrcpy(ntcomment, "Local Unix group");
- if (
!(gid = nametogid(unixgrp))
) {
+ if (
(gid = nametogid(unixgrp)) == (gid_t)-1
) {
d_printf("Can't lookup UNIX group %s\n", ntgroup);
return -1;
}