From 51b1d12e571d958cd4e9b59713f7ec72c1d2b105 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 13 Jun 1996 19:09:32 +0000 Subject: [PATCH] (Fexpand_file_name): When simplifying /foo/.., keep the initial slash. --- src/fileio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index a05a72e97bd..f5a800f6c16 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1386,6 +1386,8 @@ See also the function `substitute-in-file-name'.") { while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) ; + if (o == target && IS_ANY_SEP (*o)) + ++o; p += 3; } else -- 2.39.5