Mercurial > emacs
diff src/buffer.c @ 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 | b6edeb61a779 |
| children | 2a61a0a3a9be |
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
