Messages in this thread Patch in this message | | | Date | Tue, 6 Apr 2004 17:59:01 +0200 | From | Rudo Thomas <> | Subject | [PATCH] UDF - default [ug]id should be 0, not -1 (trivial) |
| |
Hello there.
This trivial patch sets correct default uid/gid to files that do not have them on a udf filesystem.
Some DVDs I have seem not to have a uid/gid set on the files and when one does not specify uid=/gid= mount options, the files have the default values (-1/-1).
Please, apply.
Rudo Thomas. diff -urN linux-2.6-vanilla/fs/udf/super.c linux-2.6-vanilla~/fs/udf/super.c --- linux-2.6-vanilla~/fs/udf/super.c 2004-04-04 18:43:49.230097384 +0200 +++ linux-2.6-vanilla/fs/udf/super.c 2004-03-30 17:15:11.000000000 +0200 @@ -1498,8 +1498,8 @@ struct udf_sb_info *sbi; uopt.flags = (1 << UDF_FLAG_USE_AD_IN_ICB) | (1 << UDF_FLAG_STRICT); - uopt.uid = -1; - uopt.gid = -1; + uopt.uid = 0; + uopt.gid = 0; uopt.umask = 0; sbi = kmalloc(sizeof(struct udf_sb_info), GFP_KERNEL); | |