diff options
| author | Richard M. Stallman | 1998-05-21 02:05:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-21 02:05:53 +0000 |
| commit | 309f2a6e7012690e86f34448bebd0e3cd1b4ed22 (patch) | |
| tree | 063e0b8c371708c7f5be0237e27ac267c122fe7b /src/buffer.c | |
| parent | 3a6a40e55b7d9856c2f306989e8770cb99d791a3 (diff) | |
| download | emacs-309f2a6e7012690e86f34448bebd0e3cd1b4ed22.tar.gz emacs-309f2a6e7012690e86f34448bebd0e3cd1b4ed22.zip | |
(init_buffer): Support DOS_NT absolute file names.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 3 |
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 |