From: Karel Zak Date: Wed, 18 Aug 2021 08:25:14 +0000 (+0200) Subject: more: Calling open without checking return value [coverity scan] X-Git-Tag: v2.38-rc1~291 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c67497ce66e4c6f4bad82f952cd49886ef6bef00;p=thirdparty%2Futil-linux.git more: Calling open without checking return value [coverity scan] Signed-off-by: Karel Zak --- diff --git a/text-utils/more.c b/text-utils/more.c index 5c068f1f38..0d081a5312 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1229,7 +1229,7 @@ static void __attribute__((__format__ (__printf__, 3, 4))) int errsv; if (!isatty(STDIN_FILENO)) { close(STDIN_FILENO); - open("/dev/tty", 0); + ignore_result( open("/dev/tty", 0) ); } reset_tty(ctl);