diff options
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmtar/append.c | 2 | ||||
-rw-r--r-- | Utilities/cmtar/libtar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c index 4350745..5ad3593 100644 --- a/Utilities/cmtar/append.c +++ b/Utilities/cmtar/append.c @@ -231,7 +231,7 @@ tar_append_regfile(TAR *t, char *realname) int i, j; size_t size; - filefd = open(realname, O_RDONLY); + filefd = open(realname, O_RDONLY | O_BINARY); if (filefd == -1) { #ifdef DEBUG diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index 7454a5c..cdbe7a1 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -15,7 +15,7 @@ #include <stdio.h> #include <fcntl.h> #include <errno.h> -#if !defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) && !defined(__CYGWIN__) #include <libtar/compat.h> #include <io.h> #else |