mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Support NetBSD's errno for O_NOFOLLOW.
This commit is contained in:
parent
f901a290ee
commit
6d1d6f4598
1 changed files with 8 additions and 0 deletions
|
@ -300,6 +300,14 @@ io_open_src(file_pair *pair)
|
||||||
if (errno == ENOTSUP)
|
if (errno == ENOTSUP)
|
||||||
was_symlink = true;
|
was_symlink = true;
|
||||||
|
|
||||||
|
# elif defined(__NetBSD__)
|
||||||
|
// FIXME? As of 2008-11-20, NetBSD doesn't document what
|
||||||
|
// errno is used with O_NOFOLLOW. It seems to be EFTYPE,
|
||||||
|
// but since it isn't documented, it may be wrong to rely
|
||||||
|
// on it here.
|
||||||
|
if (errno == EFTYPE)
|
||||||
|
was_symlink = true;
|
||||||
|
|
||||||
# else
|
# else
|
||||||
if (errno == ELOOP && reg_files_only) {
|
if (errno == ELOOP && reg_files_only) {
|
||||||
const int saved_errno = errno;
|
const int saved_errno = errno;
|
||||||
|
|
Loading…
Reference in a new issue