Page MenuHomeFreeBSD

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

Authored by jlduran on Aug 27 2024, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 8:20 PM
Unknown Object (File)
Thu, Nov 7, 4:12 AM
Unknown Object (File)
Oct 3 2024, 2:41 AM
Unknown Object (File)
Oct 3 2024, 2:37 AM
Unknown Object (File)
Oct 2 2024, 8:09 PM
Unknown Object (File)
Oct 2 2024, 7:52 PM
Unknown Object (File)
Oct 2 2024, 7:20 PM
Unknown Object (File)
Oct 2 2024, 10:27 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 Skipped
Unit
Tests Skipped

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

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.

688

Will be submitted in a separate review.

lib/libsys/open.2
586
lib/libsys/rename.2
259
jlduran edited the summary of this revision. (Show Details)
jlduran 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
This revision was automatically updated to reflect the committed changes.