mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
(Fexpand_file_name): Undo last change--too risky for now.
This commit is contained in:
parent
d9bcdb34a0
commit
eabf01d460
1 changed files with 4 additions and 1 deletions
|
|
@ -847,7 +847,10 @@ See also the function `substitute-in-file-name'.")
|
|||
{
|
||||
/* 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue