Date: Sun, 23 Feb 2020 00:44:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 244327] usr.bin/xargs/xargs.c:653 omits variable check when checking for ENOENT Message-ID: <bug-244327-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244327 Bug ID: 244327 Summary: usr.bin/xargs/xargs.c:653 omits variable check when checking for ENOENT Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: thomas.duffy.99@alumni.brown.edu In usr.bin/xargs/xargs.c, line 653: cause_exit =3D ENOENT ? 127 : 126; No variable is compared to ENOENT, so it always returns 127. This should likely be: cause_exit =3D errno =3D=3D ENOENT ? 127 : 126; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244327-227>