summaryrefslogtreecommitdiff
path: root/target/ext2
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-02-15 09:26:57 +0000
committerEric Andersen <andersen@codepoet.org>2005-02-15 09:26:57 +0000
commit587277d8a012c24c634f54d25c70f474d3e764c7 (patch)
tree9d4fa6ba691c772a299aa61e19ede02ed4adcc79 /target/ext2
parentd7d604bb94a30c976e104ac69698704ba3977243 (diff)
Fix it so that owners and permissions specified in device table
entires are not squashed.
Diffstat (limited to 'target/ext2')
-rw-r--r--target/ext2/genext2fs_nosquash_devtable.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/ext2/genext2fs_nosquash_devtable.patch b/target/ext2/genext2fs_nosquash_devtable.patch
new file mode 100644
index 000000000..21519ee8e
--- /dev/null
+++ b/target/ext2/genext2fs_nosquash_devtable.patch
@@ -0,0 +1,22 @@
+--- genext2fs-1.3/genext2fs.c~ 2005-02-15 02:21:18.000000000 -0700
++++ genext2fs-1.3/genext2fs.c 2005-02-15 02:17:09.000000000 -0700
+@@ -1302,6 +1302,8 @@
+ {
+ mode = uid = gid = major = minor = 0;
+ start = 0; increment = 1; count = 0;
++ uid = gid = 0;
++ mode &= ~(FM_IRWXG | FM_IRWXO);
+ lineno++;
+ if((c = strchr(line, '#')))
+ *c = 0;
+@@ -1322,10 +1324,6 @@
+ }
+ else
+ {
+- if(squash_uids)
+- uid = gid = 0;
+- if(squash_perms)
+- mode &= ~(FM_IRWXG | FM_IRWXO);
+ mode &= FM_IMASK;
+ path2 = strdup(path);
+ name = basename(path);