From dc88925771c47ef787f6f3a7b6756b8f0ce40af5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 1 Apr 2018 18:49:53 +0200 Subject: executor: fix unchecked result warning --- executor/common_linux.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 15e82961c..297253faa 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -902,7 +902,9 @@ static uintptr_t syz_read_part_table(uintptr_t size, uintptr_t nsegs, uintptr_t struct stat statbuf; if (stat(loopname, &statbuf) == 0) { snprintf(linkname, sizeof(linkname), "./file%d", (int)j++); - symlink(loopname, linkname); + if (symlink(loopname, linkname)) { + debug("syz_read_part_table: symlink(%s, %s) failed: %d\n", loopname, linkname, errno); + } } } error_clear_loop: -- cgit mrf-deployment