diff options
| author | Paul Eggert | 2018-02-03 12:10:19 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-02-03 12:19:24 -0800 |
| commit | 327d251f8a857350a78029c31c7ab3f9797cc727 (patch) | |
| tree | 06cf0b606cb68a3576960fe1befab7aa188777d5 /src/alloc.c | |
| parent | a34c7d7470d5f749659658943bd4084942d873e3 (diff) | |
| download | emacs-327d251f8a857350a78029c31c7ab3f9797cc727.tar.gz emacs-327d251f8a857350a78029c31c7ab3f9797cc727.zip | |
Avoid EOVERFLOW problems with file-directory-p
This fixes a bug where (file-directory-p FOO) would fail if FOO
had an inode number out of range for ‘stat’.
* src/fileio.c (file_directory_p): Accept a Lisp string instead of
a C string. All callers changed. On non-MS-Windows hosts, use
openat with O_PATH|O_DIRECTORY if available, otherwise
file_accessible_directory_p unless it fails due to EACCESS,
otherwise stat.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions