[PATCH] default file permission for vfat

Miroslav Rudisin (miero@atrey.karlin.mff.cuni.cz)
Tue, 1 Oct 2002 19:39:08 +0200


--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

The attached patch change default permission of files on [v]fatfs.
Default RWX have no utilization. This patch remove exec flag.

2.4.19 & 2.5.30

Thanks

--
Miroslav Rudisin

--/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch

--- inode.c.orig Mon Aug 5 21:56:01 2002 +++ inode.c Mon Aug 5 21:58:32 2002 @@ -932,8 +932,8 @@ inode->i_generation |= 1; inode->i_mode = MSDOS_MKMODE(de->attr, ((sbi->options.showexec && - !is_exec(de->ext)) - ? S_IRUGO|S_IWUGO : S_IRWXUGO) + is_exec(de->ext)) + ? S_IRWXUGO : S_IRUGO|S_IWUGO) & ~sbi->options.fs_umask) | S_IFREG; MSDOS_I(inode)->i_start = CF_LE_W(de->start); if (sbi->fat_bits == 32) {

--/9DWx/yDrRhgMJTb-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/