/[emacs]/emacs/src/fileio.c
ViewVC logotype

Diff of /emacs/src/fileio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.542 by rms, Fri May 13 23:07:41 2005 UTC revision 1.543 by eliz, Sat May 21 15:28:13 2005 UTC
# Line 1651  See also the function `substitute-in-fil Line 1651  See also the function `substitute-in-fil
1651            p += 2;            p += 2;
1652          }          }
1653        else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.'        else if (IS_DIRECTORY_SEP (p[0]) && p[1] == '.' && p[2] == '.'
1654                 /* `/../' is the "superroot" on certain file systems.  */                 /* `/../' 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
1662                 && o != target                 && o != target
1663    #endif
1664                 && (IS_DIRECTORY_SEP (p[3]) || p[3] == 0))                 && (IS_DIRECTORY_SEP (p[3]) || p[3] == 0))
1665          {          {
1666            while (o != target && (--o) && !IS_DIRECTORY_SEP (*o))            while (o != target && (--o) && !IS_DIRECTORY_SEP (*o))

Legend:
Removed from v.1.542  
changed lines
  Added in v.1.543

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26