X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;h=aaea56ed3abcfcfb2bfde356715f6133e22e4fae;hb=649b747913d2b289e904b5f1d222af886acd209c;hp=c52c9ce8f13ccd24e0dc45e3da45a7633245db8b;hpb=bb971a1e8a25cf2316d1cf5da309eb77b4975f0f;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index c52c9ce..aaea56e 100644 --- a/src/extract.c +++ b/src/extract.c @@ -609,9 +609,18 @@ maybe_recoverable (char *file_name, bool regular, bool *interdir_made) switch (e) { case ELOOP: + /* With open ("symlink", O_NOFOLLOW|...), POSIX says errno == ELOOP, - but FreeBSD through at least 8.1 uses errno == EMLINK. */ + but some operating systems do not conform to the standard. */ +#ifdef EFTYPE + /* NetBSD uses errno == EFTYPE; see . */ + case EFTYPE: +#endif + /* FreeBSD 8.1 uses errno == EMLINK. */ case EMLINK: + /* Tru64 5.1B uses errno == ENOTSUP. */ + case ENOTSUP: + if (! regular || old_files_option != OVERWRITE_OLD_FILES || dereference_option) break;