diff options
| author | Eli Zaretskii | 2002-02-26 18:42:25 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-02-26 18:42:25 +0000 |
| commit | b135bd4ced63d3e8dbcd94ba16c1ab6a5b243736 (patch) | |
| tree | 0df8dbc2acc050b9f74210d8e404d1cb2f3a8fcc /src/fileio.c | |
| parent | 16425473d513596157fe53e0bcc13d4d668fc8f0 (diff) | |
| download | emacs-b135bd4ced63d3e8dbcd94ba16c1ab6a5b243736.tar.gz emacs-b135bd4ced63d3e8dbcd94ba16c1ab6a5b243736.zip | |
(Fsubstitute_in_file_name): Fix the change from 2002-02-08.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 7a4362f413a..894189008d5 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2069,7 +2069,7 @@ duplicates what `expand-file-name' does. */) | |||
| 2069 | && *s != ':' | 2069 | && *s != ':' |
| 2070 | #endif /* VMS */ | 2070 | #endif /* VMS */ |
| 2071 | ); s++); | 2071 | ); s++); |
| 2072 | if (s > p + 1) | 2072 | if (p[0] == '~' && s > p + 1) /* we've got "/~something/" */ |
| 2073 | { | 2073 | { |
| 2074 | o = (unsigned char *) alloca (s - p + 1); | 2074 | o = (unsigned char *) alloca (s - p + 1); |
| 2075 | bcopy ((char *) p, o, s - p); | 2075 | bcopy ((char *) p, o, s - p); |
| @@ -2080,7 +2080,7 @@ duplicates what `expand-file-name' does. */) | |||
| 2080 | /* If we have ~/ or ~user and `user' exists, discard | 2080 | /* If we have ~/ or ~user and `user' exists, discard |
| 2081 | everything up to ~. But if `user' does not exist, leave | 2081 | everything up to ~. But if `user' does not exist, leave |
| 2082 | ~user alone, it might be a literal file name. */ | 2082 | ~user alone, it might be a literal file name. */ |
| 2083 | if (s == p + 1 || pw) | 2083 | if (IS_DIRECTORY_SEP (p[0]) || s == p + 1 || pw) |
| 2084 | { | 2084 | { |
| 2085 | nm = p; | 2085 | nm = p; |
| 2086 | substituted = 1; | 2086 | substituted = 1; |