changeset 13859:93b67f07b194

(Ffile_attributes) [MSDOS]: Remove special detection of MS-DOS executable files by filename extension (library `stat' does this itself now).
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Dec 1995 00:20:53 +0000
parents faf3e1b6f976
children 659a54e026bb
files src/dired.c
diffstat 1 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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: