HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a6a40e
)
(init_buffer): Support DOS_NT absolute file names.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 21 May 1998 02:05:53 +0000
(
02:05
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 21 May 1998 02:05:53 +0000
(
02:05
+0000)
src/buffer.c
patch
|
blob
|
blame
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index
979c9f8
..
b5e9318
100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-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