Date: Wed, 08 Jul 2015 13:44:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197866] FreeBSD 10.1 file(1) utility returns 0 on error Message-ID: <bug-197866-8-ccAWBEcVln@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-197866-8@https.bugs.freebsd.org/bugzilla/> References: <bug-197866-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197866 Glen Barber <gjb@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |Works As Intended --- Comment #1 from Glen Barber <gjb@FreeBSD.org> --- It looks like this is intentional, from upstream file(1)/magic(5). The '-E' option was added in February 2014, which predates the last file(1) update, which according to the manual page: -E On filesystem errors (file not found etc), instead of handling the error as regular output as POSIX mandates and keep going, issue an error message and exit. It is not clear to me why this change was made, but it appears to be that the previous '1' exit code observed on the 10.0-RELEASE machine was returned by stat(2), not file(1). -- 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-197866-8-ccAWBEcVln>