Page MenuHomeFreeBSD

linux_renameat2: improve flag checks
ClosedPublic

Authored by emaste on Sep 11 2019, 1:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 25 2024, 2:03 AM
Unknown Object (File)
Sep 21 2024, 8:00 PM
Unknown Object (File)
Sep 17 2024, 3:20 PM
Unknown Object (File)
Sep 4 2024, 11:22 AM
Unknown Object (File)
Sep 4 2024, 11:22 AM
Unknown Object (File)
Sep 4 2024, 11:22 AM
Unknown Object (File)
Sep 4 2024, 11:21 AM
Unknown Object (File)
Sep 2 2024, 1:12 AM
Subscribers

Details

Summary

In the cases where Linux returns an error (e.g. passing in an undefined flag) there's no need for us to emit a message.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

https://manpages.debian.org/testing/manpages-dev/renameat2.2.en.html

This adds these cases:

EINVAL
    An invalid flag was specified in flags.
EINVAL
    Both RENAME_NOREPLACE and RENAME_EXCHANGE were specified in flags.
EINVAL
    Both RENAME_WHITEOUT and RENAME_EXCHANGE were specified in flags.
This revision was not accepted when it landed; it landed in state Needs Review.Nov 7 2019, 3:51 PM
This revision was automatically updated to reflect the committed changes.