diff options
Diffstat (limited to 'tests/update4.c')
| -rw-r--r-- | tests/update4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/update4.c b/tests/update4.c index a9bd4bf9..a762e0a0 100644 --- a/tests/update4.c +++ b/tests/update4.c @@ -50,7 +50,7 @@ main (int argc, char *argv[] __attribute__ ((unused))) Dwelf_Strent *shstrtabse; int i; - fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666); + fd = open (fname, O_RDWR | O_BINARY | O_CREAT | O_TRUNC, 0666); if (fd == -1) { printf ("cannot open `%s': %s\n", fname, strerror (errno)); @@ -351,6 +351,7 @@ main (int argc, char *argv[] __attribute__ ((unused))) exit (1); } + close (fd); unlink (fname); return 0; |
