summaryrefslogtreecommitdiff
path: root/source3/utils/net_groupmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_groupmap.c')
-rw-r--r--source3/utils/net_groupmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index a96ac526bf..3865382c92 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -153,7 +153,7 @@ static int net_groupmap_list(int argc, const char **argv)
}
/* Get the current mapping from the database */
- if(!pdb_getgrsid(&map, sid)) {
+ if(!pdb_getgrsid(&map, &sid)) {
d_fprintf(stderr, "Failure to local group SID in the database\n");
return -1;
}
@@ -404,7 +404,7 @@ static int net_groupmap_modify(int argc, const char **argv)
}
/* Get the current mapping from the database */
- if(!pdb_getgrsid(&map, sid)) {
+ if(!pdb_getgrsid(&map, &sid)) {
d_fprintf(stderr, "Failure to local group SID in the database\n");
return -1;
}
@@ -539,7 +539,7 @@ static int net_groupmap_set(int argc, const char **argv)
DOM_SID sid;
have_map = ( (strncmp(ntgroup, "S-", 2) == 0) &&
string_to_sid(&sid, ntgroup) &&
- pdb_getgrsid(&map, sid) );
+ pdb_getgrsid(&map, &sid) );
}
if (!have_map) {