aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-04-01 18:49:53 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-04-01 18:49:53 +0200
commitdc88925771c47ef787f6f3a7b6756b8f0ce40af5 (patch)
tree23100d4191b0795aafada8c256ae715dae5f1103 /executor/common_linux.h
parent99e3b0a7e8b3ba990fd3ff3e7d10cbd92b957b14 (diff)
executor: fix unchecked result warning
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h4
1 files changed, 3 insertions, 1 deletions
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: