1
0
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:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent b754089a26
commit 43ca4b8a84

View File

@ -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;
}