diff options
Diffstat (limited to 'tests/newdata.c')
-rw-r--r-- | tests/newdata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/newdata.c b/tests/newdata.c index 9af99564..fcf26acf 100644 --- a/tests/newdata.c +++ b/tests/newdata.c @@ -26,6 +26,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include "system.h" #include ELFUTILS_HEADER(elf) #include <gelf.h> @@ -243,7 +244,7 @@ check_elf (int class, int use_mmap) printf ("\ncheck_elf: %s\n", fname); - int fd = open (fname, O_RDWR|O_CREAT|O_TRUNC, 00666); + int fd = open (fname, O_RDWR|O_CREAT|O_TRUNC, DEFFILEMODE); if (fd == -1) { printf ("cannot create `%s': %s\n", fname, strerror (errno)); |