summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_groupmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index a50628a7c3..9937145230 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -262,7 +262,7 @@ static int net_groupmap_add(int argc, const char **argv)
return -1;
}
- if ( (rid == 0) || (string_sid[0] == '\0') ) {
+ if ( (rid == 0) && (string_sid[0] == '\0') ) {
d_printf("No rid or sid specified, choosing algorithmic mapping\n");
rid = pdb_gid_to_group_rid(gid);
}