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)
Sat, Oct 26, 9:49 PM
Unknown Object (File)
Tue, Oct 22, 12:05 PM
Unknown Object (File)
Oct 4 2024, 6:01 PM
Unknown Object (File)
Oct 2 2024, 5:12 PM
Unknown Object (File)
Oct 2 2024, 8:22 AM
Unknown Object (File)
Sep 30 2024, 7:39 PM
Unknown Object (File)
Sep 24 2024, 5:19 PM
Unknown Object (File)
Sep 24 2024, 3:20 AM
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