aboutsummaryrefslogtreecommitdiffstats
path: root/src/dired.c
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-12-26 00:20:53 +0000
committerRichard M. Stallman <[email protected]>1995-12-26 00:20:53 +0000
commitfc82937b49d945064f7f8d1b2bf0c16ee1f67437 (patch)
treeaf7eda184384740cb2a0a2073f72a637a03ab9ec /src/dired.c
parente7ffe86a9068b76d394c7ca35704bcc7cd41e8ee (diff)
(Ffile_attributes) [MSDOS]: Remove special detection of
MS-DOS executable files by filename extension (library `stat' does this itself now).
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/dired.c b/src/dired.c
index de93a67adc..8e6add1f6e 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -621,22 +621,6 @@ If file does not exist, returns nil.")
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: