diff options
| author | Richard M. Stallman | 1993-04-29 13:17:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-04-29 13:17:56 +0000 |
| commit | eabf01d460f4c55fa323e3f4db50490d67f98bfb (patch) | |
| tree | dad391b172cf063cf20f1aa6e0278adfc0f41917 | |
| parent | d9bcdb34a0c0194e12aa6a41a5c331626b378796 (diff) | |
| download | emacs-eabf01d460f4c55fa323e3f4db50490d67f98bfb.tar.gz emacs-eabf01d460f4c55fa323e3f4db50490d67f98bfb.zip | |
(Fexpand_file_name): Undo last change--too risky for now.
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6c74dccc2ee..563726d1265 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -847,7 +847,10 @@ See also the function `substitute-in-file-name'.") | |||
| 847 | { | 847 | { |
| 848 | /* Get rid of any slash at the end of newdir. */ | 848 | /* Get rid of any slash at the end of newdir. */ |
| 849 | int length = strlen (newdir); | 849 | int length = strlen (newdir); |
| 850 | if (length > 1 && newdir[length - 1] == '/') | 850 | /* Adding `length > 1 &&' makes ~ expand into / when homedir |
| 851 | is the root dir. People disagree about whether that is right. | ||
| 852 | Anyway, we can't take the risk of this change now. */ | ||
| 853 | if (newdir[length - 1] == '/') | ||
| 851 | { | 854 | { |
| 852 | unsigned char *temp = (unsigned char *) alloca (length); | 855 | unsigned char *temp = (unsigned char *) alloca (length); |
| 853 | bcopy (newdir, temp, length - 1); | 856 | bcopy (newdir, temp, length - 1); |