lkml.org 
[lkml]   [2004]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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);
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.049 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site