From c8e16c12661d18e6ae724a6d89b81c0df9da365a Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 4 May 2017 17:27:47 +0200 Subject: Write to /dev/null rather than /dev/zero /dev/zero is meant for reading zeroes. /dev/null is for writing into nirvana. Signed-off-by: Ulf Hermann --- tests/elfshphehdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/elfshphehdr.c') 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; -- cgit v1.2.3