diff options
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmtar/append.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c index 5ad3593..5007c62 100644 --- a/Utilities/cmtar/append.c +++ b/Utilities/cmtar/append.c @@ -231,7 +231,11 @@ tar_append_regfile(TAR *t, char *realname) int i, j; size_t size; +#ifdef _WIN32 filefd = open(realname, O_RDONLY | O_BINARY); +#else + filefd = open(realname, O_RDONLY); +#endif if (filefd == -1) { #ifdef DEBUG |