CRED: Wrap task credential accesses in the HFS filesystem
[safe/jmp/linux-2.6] / fs / hfs / super.c
index 3c7c763..c8b5acf 100644 (file)
@@ -210,8 +210,8 @@ static int parse_options(char *options, struct hfs_sb_info *hsb)
        int tmp, token;
 
        /* initialize the sb with defaults */
-       hsb->s_uid = current->uid;
-       hsb->s_gid = current->gid;
+       hsb->s_uid = current_uid();
+       hsb->s_gid = current_gid();
        hsb->s_file_umask = 0133;
        hsb->s_dir_umask = 0022;
        hsb->s_type = hsb->s_creator = cpu_to_be32(0x3f3f3f3f); /* == '????' */