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)
Sun, Nov 2, 5:58 PM
Unknown Object (File)
Wed, Oct 29, 4:46 PM
Unknown Object (File)
Sat, Oct 25, 1:07 AM
Unknown Object (File)
Sat, Oct 18, 4:42 PM
Unknown Object (File)
Sat, Oct 18, 5:48 AM
Unknown Object (File)
Sat, Oct 18, 5:48 AM
Unknown Object (File)
Fri, Oct 17, 7:09 PM
Unknown Object (File)
Tue, Oct 14, 2:01 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.