summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-12-26 00:20:53 +0000
committerRichard M. Stallman <rms@gnu.org>1995-12-26 00:20:53 +0000
commit1b78a6f85addca5e0ce12c5dd1ff7ca4ff275783 (patch)
treebbb527029dcb70dec391c4613a3f96b33a9375ef /src/dired.c
parentc24c4fcfba71cdd2e3a989765bbbcf228287dfa7 (diff)
downloademacs-1b78a6f85addca5e0ce12c5dd1ff7ca4ff275783.tar.gz
(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 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: