changeset 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 6bf6499fe4db
children cd5e799be39b
files src/fileio.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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);