Fixup a bunch of printf-style functions and debugs to use unsigned long when
[tprouty/samba.git] / source / utils / net_idmap.c
index 689d4ff8137ec9c6961b1ebab4b3fff42c4d45db..b7eb8e4c496a51a6ed10dec1a54f712e75950d5c 100644 (file)
@@ -95,10 +95,14 @@ static int net_idmap_restore(int argc, const char **argv)
                if ( (len > 0) && (line[len-1] == '\n') )
                        line[len-1] = '\0';
 
+               /* Yuck - this is broken for sizeof(gid_t) != sizeof(int) */
+
                if (sscanf(line, "GID %d %s", &id.gid, sid_string) == 2) {
                        type = ID_GROUPID;
                }
 
+               /* Yuck - this is broken for sizeof(uid_t) != sizeof(int) */
+
                if (sscanf(line, "UID %d %s", &id.uid, sid_string) == 2) {
                        type = ID_USERID;
                }