aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/tar.c2
-rw-r--r--tar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 597e9b80d..460962e44 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -601,7 +601,7 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag,
}
/* Remove files if we would overwrite them */
- if (extractFlag == TRUE && tostdOut == FALSE)
+ if (extractFlag == TRUE && tostdoutFlag == FALSE)
unlink(header.name);
/* If we got here, we can be certain we have a legitimate
diff --git a/tar.c b/tar.c
index 597e9b80d..460962e44 100644
--- a/tar.c
+++ b/tar.c
@@ -601,7 +601,7 @@ static int readTarFile(const char* tarName, int extractFlag, int listFlag,
}
/* Remove files if we would overwrite them */
- if (extractFlag == TRUE && tostdOut == FALSE)
+ if (extractFlag == TRUE && tostdoutFlag == FALSE)
unlink(header.name);
/* If we got here, we can be certain we have a legitimate