diff options
Diffstat (limited to 'tests/arextract.c')
| -rw-r--r-- | tests/arextract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/arextract.c b/tests/arextract.c index 2c4dc758..f3623b9e 100644 --- a/tests/arextract.c +++ b/tests/arextract.c @@ -42,7 +42,7 @@ main (int argc, char *argv[]) exit (1); /* Open the archive. */ - fd = open (argv[1], O_RDONLY); + fd = open (argv[1], O_RDONLY | O_BINARY); if (fd == -1) { printf ("Cannot open input file: %m"); @@ -95,7 +95,7 @@ Failed to get base address for the archive element: %s\n", } /* Open the output file. */ - outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, 0666); + outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0666); if (outfd == -1) { printf ("cannot open output file: %m"); |
