aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c10
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 @@
12005-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
12005-05-21 David Hunter <hunterd42@comcast.net> (tiny change) 62005-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))