diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c index 5ea29061950..221ef67cd8e 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -795,10 +795,15 @@ See also the function `substitute-in-file-name'.") | |||
| 795 | 795 | ||
| 796 | The EQ test avoids infinite recursion. */ | 796 | The EQ test avoids infinite recursion. */ |
| 797 | if (! NILP (default_directory) && !EQ (default_directory, name) | 797 | if (! NILP (default_directory) && !EQ (default_directory, name) |
| 798 | /* This saves time in a common case. */ | 798 | /* Save time in some common cases. */ |
| 799 | #ifdef DOS_NT | ||
| 800 | /* Detect MSDOS file names with device names. */ | ||
| 799 | && ! (XSTRING (default_directory)->size >= 3 | 801 | && ! (XSTRING (default_directory)->size >= 3 |
| 800 | && IS_DIRECTORY_SEP (XSTRING (default_directory)->data[0]) | 802 | && IS_DEVICE_SEP (o[1]) && IS_DIRECTORY_SEP (o[2])) |
| 801 | && IS_DEVICE_SEP (XSTRING (default_directory)->data[1]))) | 803 | #endif |
| 804 | /* Detect Unix absolute file names. */ | ||
| 805 | && ! (XSTRING (default_directory)->size >= 2 | ||
| 806 | && IS_DIRECTORY_SEP (o[0]))) | ||
| 802 | { | 807 | { |
| 803 | struct gcpro gcpro1; | 808 | struct gcpro gcpro1; |
| 804 | 809 | ||