X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;h=bd5e7bf588daecfa0da25ef9fa1bc64957e1be8e;hb=6689e8db4f53f6a0bed3d1bc4ed12d31eaa3bf51;hp=55f3eb860e2a616f982529f667adb044b7caf16c;hpb=9a82a0215b971725c835c640fb5f6e5b47ac214e;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index 55f3eb8..bd5e7bf 100644 --- a/src/extract.c +++ b/src/extract.c @@ -887,7 +887,8 @@ open_output_file (char const *file_name, int typeflag, mode_t mode, /* If O_NOFOLLOW is needed but does not work, check for a symlink separately. There's a race condition, but that cannot be avoided on hosts lacking O_NOFOLLOW. */ - if (! O_NOFOLLOW && overwriting_old_files && ! dereference_option) + if (! HAVE_WORKING_O_NOFOLLOW + && overwriting_old_files && ! dereference_option) { struct stat st; if (fstatat (chdir_fd, file_name, &st, AT_SYMLINK_NOFOLLOW) == 0