Skip to contentSkip to conversation

all files are executable in vfat

PATCH [email protected] 1 participant 1 message Oct 3, 2001 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

Looking at linux/fs/fat/inode.c it seems that everything is here to allow a smart handling of the x flag.
But there is something that I don't undestand (or is a bug) and is corrected by this micro patch.

fs/fat/inode.c Wed Sep 26 22:32:35 2001 renamed from fs/fat/inode.c Wed Sep 26 20:59:39 2001 +2 -2
@@ -920,8 +920,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) {

Now you have two choices when using umask=OOO
- without showexec : only dirs have the x flag set.
- with showexec : *.{exe,bat,com} have it too.

I am not the list so ...

Guillaume Chazarain
(putting my name in the header doesn't work.)