From fc82937b49d945064f7f8d1b2bf0c16ee1f67437 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 26 Dec 1995 00:20:53 +0000 Subject: [PATCH] (Ffile_attributes) [MSDOS]: Remove special detection of MS-DOS executable files by filename extension (library `stat' does this itself now). --- src/dired.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/dired.c b/src/dired.c index de93a67adc4..8e6add1f6e8 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: -- 2.39.2