Page MenuHomeFreeBSD

Force diff report_identical test to use unprivileged_user
ClosedPublic

Authored by olivier on Feb 2 2021, 9:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 28, 5:17 AM
Unknown Object (File)
Sun, Sep 21, 7:32 AM
Unknown Object (File)
Fri, Sep 19, 3:58 PM
Unknown Object (File)
Tue, Sep 16, 2:33 PM
Unknown Object (File)
Thu, Sep 11, 10:31 AM
Unknown Object (File)
Sep 10 2025, 8:30 AM
Unknown Object (File)
Aug 24 2025, 6:13 AM
Unknown Object (File)
Aug 5 2025, 1:46 PM
Subscribers
None

Details

Summary

Running the full regression suite is done using root user: diff is still able to read the unreadable (chmod -r) file if run with root.

Test Plan

Before, as root:

cd /usr/tests
kyua test usr.bin/diff/diff_test:report_identical

is failing (no permission error message generated by diff).
After applying this patch, diff correctly generate the error, so pass the test.

Diff Detail

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