summaryrefslogtreecommitdiff
path: root/source3/utils/net_idmap.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-07-22 06:52:39 +0000
committerTim Potter <tpot@samba.org>2003-07-22 06:52:39 +0000
commitc9bc4b27b71f6baaa9dde1722061f3d59d8554bc (patch)
treeb91c28fc192f0053fdf9f7e511f1e7511d677627 /source3/utils/net_idmap.c
parent80c1f1d865b13a63c7a60876b63458119566e044 (diff)
downloadsamba-c9bc4b27b71f6baaa9dde1722061f3d59d8554bc.tar.gz
samba-c9bc4b27b71f6baaa9dde1722061f3d59d8554bc.tar.bz2
samba-c9bc4b27b71f6baaa9dde1722061f3d59d8554bc.zip
Another round of uid/gid/pid format string changes I missed the
first time. (This used to be commit 6616485dbad74dab7506609c6bfd183fc9c1f93c)
Diffstat (limited to 'source3/utils/net_idmap.c')
-rw-r--r--source3/utils/net_idmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_idmap.c b/source3/utils/net_idmap.c
index b7eb8e4c49..b035d8d2f1 100644
--- a/source3/utils/net_idmap.c
+++ b/source3/utils/net_idmap.c
@@ -118,9 +118,10 @@ static int net_idmap_restore(int argc, const char **argv)
}
if (!NT_STATUS_IS_OK(idmap_set_mapping(&sid, id, type))) {
- d_printf("Could not set mapping of %s %d to sid %s\n",
+ d_printf("Could not set mapping of %s %lu to sid %s\n",
(type == ID_GROUPID) ? "GID" : "UID",
- (type == ID_GROUPID) ? id.gid : id.uid,
+ (type == ID_GROUPID) ? (unsigned long)id.gid:
+ (unsigned long)id.uid,
sid_string_static(&sid));
continue;
}