changeset 22171:e23d16d11ba9

(init_buffer): Support DOS_NT absolute file names.
author Richard M. Stallman <rms@gnu.org>
date Thu, 21 May 1998 02:05:53 +0000
parents 01df0098b07f
children e0f5d2438001
files src/buffer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Thu May 21 01:55:57 1998 +0000
+++ b/src/buffer.c	Thu May 21 02:05:53 1998 +0000
@@ -3951,7 +3951,8 @@
 
   /* 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