From 309f2a6e7012690e86f34448bebd0e3cd1b4ed22 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 21 May 1998 02:05:53 +0000 Subject: [PATCH] (init_buffer): Support DOS_NT absolute file names. --- src/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 979c9f872f0..b5e9318c10b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3951,7 +3951,8 @@ init_buffer () /* If PWD is accurate, use it instead of calling getwd. This is faster when PWD is right, and may avoid a fatal error. */ - if ((pwd = getenv ("PWD")) != 0 && IS_DIRECTORY_SEP (*pwd) + if ((pwd = getenv ("PWD")) != 0 + && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1]))) && stat (pwd, &pwdstat) == 0 && stat (".", &dotstat) == 0 && dotstat.st_ino == pwdstat.st_ino -- 2.39.2