This patch changes the default owning uid/gid for files created by cdrwtool and mkudffs ( basically the root and lost+found directories ) from 0 to -1. This allows the udf filesystem driver to obey the uid/gid mount options. When the FSD sees a -1, if the uid/gid mount options were specified, it replaces the -1 with those values. I also patched the FSD ( not in this patch ) to write a -1 if the owner matches the mount option (previously it wrote a 0 instead, so files would spontaniously change ownership when unmounted/mounted to root if they were owned by the uid specified in the mount options ). This allows sane application of the mount options to allow a non root user, or even different users, possibly on different machines, to use the disc. - Phillip Susi diff -ru udftools-1.0.0b3.orig/cdrwtool/defaults.c udftools-1.0.0b3/cdrwtool/defaults.c --- udftools-1.0.0b3.orig/cdrwtool/defaults.c 2002-11-26 02:18:50.000000000 -0500 +++ udftools-1.0.0b3/cdrwtool/defaults.c 2006-01-03 23:19:49.000000000 -0500 @@ -443,6 +443,8 @@ UDF_OS_ID_LINUX, }, }, + uid : -1, + gid : -1, }; struct extendedFileEntry default_efe = @@ -476,4 +478,6 @@ UDF_OS_ID_LINUX, }, }, + uid : -1, + gid : -1, }; diff -ru udftools-1.0.0b3.orig/cdrwtool/main.c udftools-1.0.0b3/cdrwtool/main.c diff -ru udftools-1.0.0b3.orig/debian/changelog udftools-1.0.0b3/debian/changelog diff -ru udftools-1.0.0b3.orig/doc/cdrwtool.1 udftools-1.0.0b3/doc/cdrwtool.1 diff -ru udftools-1.0.0b3.orig/mkudffs/defaults.c udftools-1.0.0b3/mkudffs/defaults.c --- udftools-1.0.0b3.orig/mkudffs/defaults.c 2002-11-26 02:18:51.000000000 -0500 +++ udftools-1.0.0b3/mkudffs/defaults.c 2006-01-03 23:20:11.000000000 -0500 @@ -450,6 +450,8 @@ UDF_OS_ID_LINUX, }, }, + uid : -1, + gid : -1, }; struct extendedFileEntry default_efe = @@ -483,4 +485,6 @@ UDF_OS_ID_LINUX, }, }, + uid : -1, + gid : -1, };