summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-15 01:55:06 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-15 01:55:06 +0000
commitdb5355cb3acce0e265a003846b82679625df8202 (patch)
tree4ce9bba342236a55c379c6100ac622c1f1d3ae19 /source3
parentc9aa836204eb722890cbd4d64248ff7ef1a50e60 (diff)
downloadsamba-db5355cb3acce0e265a003846b82679625df8202.tar.gz
samba-db5355cb3acce0e265a003846b82679625df8202.tar.bz2
samba-db5355cb3acce0e265a003846b82679625df8202.zip
Don't ask, it's too embarrassing :-)
Actually let the user explicitly specify a rid... Volker (This used to be commit 3aed9c8a4ac97ef55772ddae1e1cb0a5a1a15767)
Diffstat (limited to 'source3')
-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);
}