From b05f7f3bd9d0264a6e143e10269e3eca5416b048 Mon Sep 17 00:00:00 2001 From: startx2017 Date: Mon, 10 Apr 2017 09:24:00 -0400 Subject: --quiet fixes --- src/fseccomp/syscall.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fseccomp/syscall.c') diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index 398a49578..b86c1c489 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c @@ -130,8 +130,10 @@ int syscall_check_list(const char *slist, void (*callback)(int fd, int syscall, int syscall_nr; int error_nr; syscall_process_name(ptr, &syscall_nr, &error_nr); - if (syscall_nr == -1) - fprintf(stderr, "Warning fseccomp: syscall %s not found\n", ptr); + if (syscall_nr == -1) { + if (!arg_quiet) + fprintf(stderr, "Warning fseccomp: syscall \"%s\" not available on this platform\n", ptr); + } else if (callback != NULL) { if (error_nr != -1) filter_add_errno(fd, syscall_nr, error_nr); -- cgit v1.2.3-54-g00ecf