diff options
| author | Richard M. Stallman | 1995-12-26 00:20:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-12-26 00:20:53 +0000 |
| commit | fc82937b49d945064f7f8d1b2bf0c16ee1f67437 (patch) | |
| tree | af7eda184384740cb2a0a2073f72a637a03ab9ec /src | |
| parent | e7ffe86a9068b76d394c7ca35704bcc7cd41e8ee (diff) | |
| download | emacs-fc82937b49d945064f7f8d1b2bf0c16ee1f67437.tar.gz emacs-fc82937b49d945064f7f8d1b2bf0c16ee1f67437.zip | |
(Ffile_attributes) [MSDOS]: Remove special detection of
MS-DOS executable files by filename extension (library `stat' does
this itself now).
Diffstat (limited to 'src')
| -rw-r--r-- | src/dired.c | 16 |
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.") | |||
| 621 | if (lstat (XSTRING (filename)->data, &s) < 0) | 621 | if (lstat (XSTRING (filename)->data, &s) < 0) |
| 622 | return Qnil; | 622 | return Qnil; |
| 623 | 623 | ||
| 624 | #ifdef MSDOS | ||
| 625 | { | ||
| 626 | char *tmpnam = XSTRING (Ffile_name_nondirectory (filename))->data; | ||
| 627 | int l = strlen (tmpnam); | ||
| 628 | |||
| 629 | if (l >= 5 | ||
| 630 | && S_ISREG (s.st_mode) | ||
| 631 | && (stricmp (&tmpnam[l - 4], ".com") == 0 | ||
| 632 | || stricmp (&tmpnam[l - 4], ".exe") == 0 | ||
| 633 | || stricmp (&tmpnam[l - 4], ".bat") == 0)) | ||
| 634 | { | ||
| 635 | s.st_mode |= S_IEXEC; | ||
| 636 | } | ||
| 637 | } | ||
| 638 | #endif /* MSDOS */ | ||
| 639 | |||
| 640 | switch (s.st_mode & S_IFMT) | 624 | switch (s.st_mode & S_IFMT) |
| 641 | { | 625 | { |
| 642 | default: | 626 | default: |