]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/fat/inode.c
CRED: Wrap task credential accesses in the FAT filesystem
[linux-2.6-omap-h63xx.git] / fs / fat / inode.c
index 2b2eec1283bfa8d0d830fce2f6f9792e0dedbbca..cf621acd9e9a1385af8ac7b22b4dbcc11b2827e6 100644 (file)
@@ -921,8 +921,8 @@ static int parse_options(char *options, int is_vfat, int silent, int *debug,
 
        opts->isvfat = is_vfat;
 
-       opts->fs_uid = current->uid;
-       opts->fs_gid = current->gid;
+       opts->fs_uid = current_uid();
+       opts->fs_gid = current_gid();
        opts->fs_fmask = opts->fs_dmask = current->fs->umask;
        opts->allow_utime = -1;
        opts->codepage = fat_default_codepage;