1 This is a stupid little patch adding an option to change all uid/gid to
2 root/root in the generated filesystem. We really need to teach mksquashfs
3 about device tables though...
5 --- squashfs1.3r3/squashfs-tools/mksquashfs.c-dist 2004-03-29 20:35:37.000000000 -0600
6 +++ squashfs1.3r3/squashfs-tools/mksquashfs.c 2004-03-29 22:28:51.000000000 -0600
8 stotal_bytes, stotal_inode_bytes, stotal_directory_bytes, sinode_count, sfile_count, ssym_count, sdev_count, sdir_count, sdup_files;
11 +unsigned int root_owned = 0;
13 /*flag whether destination file is a block device */
17 return SQUASHFS_INVALID;
25 base->mode = SQUASHFS_MODE(buf.st_mode);
26 base->uid = get_uid(&file_type, (squashfs_uid) buf.st_uid);
27 base->inode_type = file_type;
30 } else if(strcmp(argv[i], "-version") == 0) {
32 + } else if (strcmp(argv[i], "-root-owned") == 0) {
35 ERROR("%s: invalid option\n\n", argv[0]);