Date: Fri, 11 Jan 2019 20:07:05 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234885] cmp(1) Capsicum error if stdin closed Message-ID: <bug-234885-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234885 Bug ID: 234885 Summary: cmp(1) Capsicum error if stdin closed Product: Base System Version: 12.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: naddy@FreeBSD.org cmp(1) errors out with a Capsicum error when called with stdin closed: $ sh -c 'cmp /bin/ls /bin/cat <&-' cmp: /bin/ls: Capabilities insufficient Since fd 0 is closed, open() of the first file argument returns fd=3D0, and= a subsequent fstat(0, ...) produces the error. I found this because GNU tar 1.31's test suite includes some test scripts t= hat, for whatever reason, close stdin (exec <&-) and later call cmp. --=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-234885-227>