# HG changeset patch # User Richard M. Stallman # Date 736089476 0 # Node ID fcf578723758b4e69783193a658477f14415d991 # Parent 6bf6499fe4db51b3d339662bb9e88d8daacbed50 (Fexpand_file_name): Undo last change--too risky for now. diff -r 6bf6499fe4db -r fcf578723758 src/fileio.c --- 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);