Page MenuHomeFreeBSD

Extend EINVAL's description for rename(2) and open(2)
ClosedPublic

Authored by jlduran_gmail.com on Aug 27 2024, 2:40 AM.
Tags
None
Referenced Files
F98096294: D46450.diff
Wed, Oct 2, 8:14 AM
Unknown Object (File)
Fri, Sep 27, 3:26 PM
Unknown Object (File)
Sun, Sep 22, 6:01 PM
Unknown Object (File)
Sat, Sep 21, 11:29 AM
Unknown Object (File)
Tue, Sep 17, 6:09 AM
Unknown Object (File)
Mon, Sep 16, 8:32 AM
Unknown Object (File)
Mon, Sep 2, 3:16 PM
Unknown Object (File)
Sep 1 2024, 4:55 AM

Details

Summary
rename.2: Extend EINVAL's description

On some file systems, the last component of the destination path can
contain invalid characters and return EINVAL.

PR: 281033
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: 218033

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libsys/open.2
583

Usually we provide separate list entry for each cause. So I suggest to remove the 'or' and add yet another .It Bq Er there

lib/libsys/rename.2
258 ↗(On Diff #142504)

Same, add new enumeration item for EINVAL.

Put the new EINVAL descriptions on separate list items.

Note that no linting was performed on these man pages.

The useless Tn macros will also be removed, but:

mandoc: open.2:350:9: STYLE: referenced manual not found: Xr __acl_get_fd 2
mandoc: open.2:350:29: STYLE: referenced manual not found: Xr __acl_aclcheck_fd 2

Will not be removed, given those were recently introduced in 7a292504bad8467915f072f0576b2a07c76de1f5.

lib/libsys/open.2
387

Will be submitted in a separate review.

682–685

Will be submitted in a separate review.

lib/libsys/open.2
586
lib/libsys/rename.2
259 ↗(On Diff #142505)
jlduran_gmail.com edited the summary of this revision. (Show Details)
jlduran_gmail.com marked 2 inline comments as done.

Please mail me git patches.

This revision is now accepted and ready to land.Aug 27 2024, 8:17 PM