diff options
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/elfshphehdr.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 3dd6f2a9..a4404e42 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2017-05-04 Ulf Hermann <ulf.hermann@qt.io> + + * elfshphehdr.c: For writing, use /dev/null rather than /dev/zero. + 2017-07-14 Mark Wielaard <mark@klomp.org> * run-strip-remove-keep.sh: New test. diff --git a/tests/elfshphehdr.c b/tests/elfshphehdr.c index 5a297e0d..8183937c 100644 --- a/tests/elfshphehdr.c +++ b/tests/elfshphehdr.c @@ -152,7 +152,7 @@ main (int argc __attribute__ ((unused)), char **argv __attribute ((unused))) { elf_version (EV_CURRENT); - int fd = fd = open("/dev/zero", O_WRONLY); + int fd = open("/dev/null", O_WRONLY); check ("open", fd >= 0); Elf *elf; |