{
mkdir(path, mode);
chown(path, uid, gid);
-// printf("Directory: %s %s UID: %ld GID %ld MODE: %ld\n", path, name, uid, gid, mode);
+// printf("Directory: %s %s UID: %ld GID %ld MODE: %04lo\n", path, name, uid, gid, mode);
}
static void add_new_device(char *name, char *path, unsigned long uid,
mknod(path, mode, rdev);
chown(path, uid, gid);
-// printf("Device: %s %s UID: %ld GID: %ld MODE: %ld MAJOR: %d MINOR: %d\n",
+// printf("Device: %s %s UID: %ld GID: %ld MODE: %04lo MAJOR: %d MINOR: %d\n",
// path, name, uid, gid, mode, (short)(rdev >> 8), (short)(rdev & 0xff));
}
}
chmod(path, mode);
chown(path, uid, gid);
-// printf("File: %s %s UID: %ld GID: %ld MODE: %ld\n",
+// printf("File: %s %s UID: %ld GID: %ld MODE: %04lo\n",
// path, name, gid, uid, mode);
}
if (mknod(path, mode, 0))
error_msg_and_die("%s: file can not be created with mknod!", path);
chown(path, uid, gid);
-// printf("File: %s %s UID: %ld GID: %ld MODE: %ld\n",
+// printf("File: %s %s UID: %ld GID: %ld MODE: %04lo\n",
// path, name, gid, uid, mode);
}