aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/linux_common.go
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 /pkg/csource/linux_common.go
parent99e3b0a7e8b3ba990fd3ff3e7d10cbd92b957b14 (diff)
executor: fix unchecked result warning
Diffstat (limited to 'pkg/csource/linux_common.go')
-rw-r--r--pkg/csource/linux_common.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go
index 48123035b..78d9106de 100644
--- a/pkg/csource/linux_common.go
+++ b/pkg/csource/linux_common.go
@@ -1018,7 +1018,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: