# HG changeset patch # User Richard M. Stallman # Date 895716353 0 # Node ID e23d16d11ba9f86849e2f7e281cf0c3b7ea798a0 # Parent 01df0098b07fb133b562118671c8b6015afc9db0 (init_buffer): Support DOS_NT absolute file names. diff -r 01df0098b07f -r e23d16d11ba9 src/buffer.c --- 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