Page MenuHomeFreeBSD

linux_renameat2: improve flag checks
Needs ReviewPublic

Authored by emaste on Wed, Sep 11, 1:21 PM.

Details

Reviewers
trasz
Group Reviewers
Linux Emulation
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
Unit Tests Skipped

Event Timeline

emaste created this revision.Wed, Sep 11, 1:21 PM

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.