# HG changeset patch # User Richard M. Stallman # Date 819937253 0 # Node ID 93b67f07b194573afc283eaafebcfb1148eaa321 # Parent faf3e1b6f976ed1666317a49a93cfbe4784fd182 (Ffile_attributes) [MSDOS]: Remove special detection of MS-DOS executable files by filename extension (library `stat' does this itself now). diff -r faf3e1b6f976 -r 93b67f07b194 src/dired.c --- a/src/dired.c Mon Dec 25 21:07:12 1995 +0000 +++ b/src/dired.c Tue Dec 26 00:20:53 1995 +0000 @@ -621,22 +621,6 @@ if (lstat (XSTRING (filename)->data, &s) < 0) return Qnil; -#ifdef MSDOS - { - char *tmpnam = XSTRING (Ffile_name_nondirectory (filename))->data; - int l = strlen (tmpnam); - - if (l >= 5 - && S_ISREG (s.st_mode) - && (stricmp (&tmpnam[l - 4], ".com") == 0 - || stricmp (&tmpnam[l - 4], ".exe") == 0 - || stricmp (&tmpnam[l - 4], ".bat") == 0)) - { - s.st_mode |= S_IEXEC; - } - } -#endif /* MSDOS */ - switch (s.st_mode & S_IFMT) { default: