git: 02c23c3b5ac9 - main - open(2): Extend EINVAL's description
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Aug 2024 22:09:55 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=02c23c3b5ac9c9c1115c8b892034bb5d67b05c06 commit 02c23c3b5ac9c9c1115c8b892034bb5d67b05c06 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2024-08-27 02:23:14 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-27 22:09:33 +0000 open(2): Extend EINVAL's description If O_CREAT is specified, the last component of the path argument can contain invalid characters, and return EINVAL on some file systems. PR: 281033 Differential revision: https://reviews.freebsd.org/D46450 MFC after: 1 week --- lib/libsys/open.2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libsys/open.2 b/lib/libsys/open.2 index 220561cc5683..4cdceb336532 100644 --- a/lib/libsys/open.2 +++ b/lib/libsys/open.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 29, 2024 +.Dd August 25, 2024 .Dt OPEN 2 .Os .Sh NAME @@ -580,6 +580,12 @@ and .Dv O_EXEC or .Dv O_SEARCH . +.It Bq Er EINVAL +.Dv O_CREAT +is specified, +and the last component of the +.Fa path +argument is invalid on the file system on which the file is being created. .It Bq Er EBADF The .Fa path