Mercurial > emacs
diff src/fileio.c @ 2607:fcf578723758
(Fexpand_file_name): Undo last change--too risky for now.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 29 Apr 1993 13:17:56 +0000 |
| parents | a53b4a566cb6 |
| children | f378d89945e1 |
line wrap: on
line diff
--- a/src/fileio.c Thu Apr 29 13:12:37 1993 +0000 +++ b/src/fileio.c Thu Apr 29 13:17:56 1993 +0000 @@ -847,7 +847,10 @@ { /* Get rid of any slash at the end of newdir. */ int length = strlen (newdir); - if (length > 1 && newdir[length - 1] == '/') + /* Adding `length > 1 &&' makes ~ expand into / when homedir + is the root dir. People disagree about whether that is right. + Anyway, we can't take the risk of this change now. */ + if (newdir[length - 1] == '/') { unsigned char *temp = (unsigned char *) alloca (length); bcopy (newdir, temp, length - 1);
