[Bug 227706] file(1) succeeds when the file doesn't exist
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 23 05:17:22 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227706
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 at FreeBSD.org
Reporter: yuri at 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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list