Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2018 14:37:53 +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-AorwYgSU8d@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227706-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227706-227@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=227706

lgfbsd@be-well.ilk.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lgfbsd@be-well.ilk.org

--- Comment #1 from lgfbsd@be-well.ilk.org ---
I believe this is correct POSIX behavior:
"
    If the file named by the file operand does not exist, cannot be read, or
the type of the file named by the file operand cannot be determined, this shall
not be considered an error that affects the exit status.
"

An appropriate fix would be to add that text to our manual page.

-- 
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-AorwYgSU8d>