Commit 309f2a6e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_buffer): Support DOS_NT absolute file names.

parent 3a6a40e5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment