(init_buffer): Support DOS_NT absolute file names.
authorRichard M. Stallman <rms@gnu.org>
Thu, 21 May 1998 02:05:53 +0000 (02:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 21 May 1998 02:05:53 +0000 (02:05 +0000)
src/buffer.c

index 979c9f8..b5e9318 100644 (file)
@@ -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