aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-21 02:05:53 +0000
committerRichard M. Stallman1998-05-21 02:05:53 +0000
commit309f2a6e7012690e86f34448bebd0e3cd1b4ed22 (patch)
tree063e0b8c371708c7f5be0237e27ac267c122fe7b /src
parent3a6a40e55b7d9856c2f306989e8770cb99d791a3 (diff)
downloademacs-309f2a6e7012690e86f34448bebd0e3cd1b4ed22.tar.gz
emacs-309f2a6e7012690e86f34448bebd0e3cd1b4ed22.zip
(init_buffer): Support DOS_NT absolute file names.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 979c9f872f0..b5e9318c10b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3951,7 +3951,8 @@ init_buffer ()
3951 3951
3952 /* If PWD is accurate, use it instead of calling getwd. This is faster 3952 /* If PWD is accurate, use it instead of calling getwd. This is faster
3953 when PWD is right, and may avoid a fatal error. */ 3953 when PWD is right, and may avoid a fatal error. */
3954 if ((pwd = getenv ("PWD")) != 0 && IS_DIRECTORY_SEP (*pwd) 3954 if ((pwd = getenv ("PWD")) != 0
3955 && (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1])))
3955 && stat (pwd, &pwdstat) == 0 3956 && stat (pwd, &pwdstat) == 0
3956 && stat (".", &dotstat) == 0 3957 && stat (".", &dotstat) == 0
3957 && dotstat.st_ino == pwdstat.st_ino 3958 && dotstat.st_ino == pwdstat.st_ino