summaryrefslogtreecommitdiff
path: root/tar/bsdtar.c
diff options
context:
space:
mode:
Diffstat (limited to 'tar/bsdtar.c')
-rw-r--r--tar/bsdtar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/bsdtar.c b/tar/bsdtar.c
index b55b4c6c..75249d10 100644
--- a/tar/bsdtar.c
+++ b/tar/bsdtar.c
@@ -216,9 +216,9 @@ main(int argc, char **argv)
#if defined(_PATH_DEFTAPE)
if (bsdtar->filename == NULL) {
#if defined(_WIN32) && !defined(__CYGWIN__)
- int tapeExists = _access(_PATH_DEFTAPE, 0);
+ int tapeExists = !_access(_PATH_DEFTAPE, 0);
#else
- int tapeExists = access(_PATH_DEFTAPE, F_OK);
+ int tapeExists = !access(_PATH_DEFTAPE, F_OK);
#endif
if (tapeExists) {
bsdtar->filename = _PATH_DEFTAPE;