Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
309f2a6e
Commit
309f2a6e
authored
May 21, 1998
by
Richard M. Stallman
Browse files
(init_buffer): Support DOS_NT absolute file names.
parent
3a6a40e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/buffer.c
src/buffer.c
+2
-1
No files found.
src/buffer.c
View file @
309f2a6e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment