diff options
| author | Eli Zaretskii | 2005-05-21 15:28:57 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-05-21 15:28:57 +0000 |
| commit | aa4060b96fc558a2861712ddb051a22c1adef275 (patch) | |
| tree | f79546ba922ab7bed362b157a92f8868052e51b5 /src | |
| parent | bb4afd09189d16c86792843c97309820d3a5a688 (diff) | |
| download | emacs-aa4060b96fc558a2861712ddb051a22c1adef275.tar.gz emacs-aa4060b96fc558a2861712ddb051a22c1adef275.zip | |
(Fexpand_file_name) [DOS_NT]: Don't try to support "superroot"
on DOS_NT systems.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fileio.c | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 66dc0406443..dc474221503 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-05-21 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support | ||
| 4 | "superroot" on DOS_NT systems. | ||
| 5 | |||
| 1 | 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change) | 6 | 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change) |
| 2 | 7 | ||
| 3 | * process.c (send_process): Restore the SIGPIPE handler if we | 8 | * process.c (send_process): Restore the SIGPIPE handler if we |
diff --git a/src/fileio.c b/src/fileio.c index 0956fb9d134..4dac185ac81 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1651,8 +1651,16 @@ See also the function `substitute-in-file-name'. */) | |||
| 1651 | p += 2; | 1651 | p += 2; |
| 1652 | } | 1652 | } |
| 1653 | else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.' | 1653 | else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.' |
| 1654 | /* `/../' is the "superroot" on certain file systems. */ | 1654 | /* `/../' is the "superroot" on certain file systems. |
| 1655 | Turned off on DOS_NT systems because they have no | ||
| 1656 | "superroot" and because this causes us to produce | ||
| 1657 | file names like "d:/../foo" which fail file-related | ||
| 1658 | functions of the underlying OS. (To reproduce, try a | ||
| 1659 | long series of "../../" in default_directory, longer | ||
| 1660 | than the number of levels from the root.) */ | ||
| 1661 | #ifndef DOS_NT | ||
| 1655 | && o != target | 1662 | && o != target |
| 1663 | #endif | ||
| 1656 | && (IS_DIRECTORY_SEP (p[3]) || p[3] == 0)) | 1664 | && (IS_DIRECTORY_SEP (p[3]) || p[3] == 0)) |
| 1657 | { | 1665 | { |
| 1658 | while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) | 1666 | while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) |