mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Patch from "Alex Deiter" <tiamat@komi.mts.ru> to fix incorrect error check.
Jeremy.
This commit is contained in:
parent
b754089a26
commit
43ca4b8a84
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user