From: Richard M. Stallman Date: Thu, 21 May 1998 02:05:53 +0000 (+0000) Subject: (init_buffer): Support DOS_NT absolute file names. X-Git-Tag: emacs-20.3~906 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=309f2a6e7012690e86f34448bebd0e3cd1b4ed22;p=emacs.git (init_buffer): Support DOS_NT absolute file names. --- 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