# HG changeset patch # User Richard M. Stallman # Date 861331660 0 # Node ID ba848dceb1c9638af5b551763de4bf444dd6d426 # Parent 8f3dcea869f52b23c51b125a307f1b91da889e21 (Fexpand_file_name): Fix expansion of "/foo/../". diff -r 8f3dcea869f5 -r ba848dceb1c9 src/fileio.c --- a/src/fileio.c Fri Apr 18 00:48:01 1997 +0000 +++ b/src/fileio.c Fri Apr 18 02:47:40 1997 +0000 @@ -1379,7 +1379,8 @@ { while (o != target && (--o) && !IS_DIRECTORY_SEP (*o)) ; - if (o == target && IS_ANY_SEP (*o)) + /* Keep initial / only if this is the whole name. */ + if (o == target && IS_ANY_SEP (*o) && p[3] == 0) ++o; p += 3; }