(init_buffer): Fix PWD comment.
This commit is contained in:
parent
3a2ceb9e9c
commit
314dbe9a7f
1 changed files with 3 additions and 2 deletions
|
@ -4973,8 +4973,9 @@ init_buffer ()
|
|||
if (NILP (buffer_defaults.enable_multibyte_characters))
|
||||
Fset_buffer_multibyte (Qnil);
|
||||
|
||||
/* 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 is accurate, use it instead of calling getwd. PWD is
|
||||
sometimes a nicer name, and using it may avoid a fatal error if a
|
||||
parent directory is searchable but not readable. */
|
||||
if ((pwd = getenv ("PWD")) != 0
|
||||
&& (IS_DIRECTORY_SEP (*pwd) || (*pwd && IS_DEVICE_SEP (pwd[1])))
|
||||
&& stat (pwd, &pwdstat) == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue