Date: Mon, 23 Apr 2018 05:17:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 227706] file(1) succeeds when the file doesn't exist Message-ID: <bug-227706-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227706 Bug ID: 227706 Summary: file(1) succeeds when the file doesn't exist Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: yuri@freebsd.org For nonexistent file file(1) returns zero on 11.1: > $ /usr/bin/file /nonexistent > /nonexistent: cannot open `/nonexistent' (No such file or directory) > $ echo $? > 0 Despite its manpage saying: > RETURN CODE > file returns 0 on success, and non-zero on error. --=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-227706-227>