From 43ca4b8a8425b97a6bea08b91420bac6cde807b3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 May 2003 17:23:35 +0000 Subject: [PATCH] Patch from "Alex Deiter" to fix incorrect error check. Jeremy. --- source/utils/net_groupmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/net_groupmap.c b/source/utils/net_groupmap.c index f4cd8c13a6f..905fdf62871 100644 --- a/source/utils/net_groupmap.c +++ b/source/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; }