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)
Dec 11 2025, 8:53 AM
Unknown Object (File)
Nov 24 2025, 1:13 AM
Unknown Object (File)
Nov 3 2025, 12:37 PM
Unknown Object (File)
Nov 3 2025, 12:36 PM
Unknown Object (File)
Nov 3 2025, 12:36 PM
Unknown Object (File)
Nov 3 2025, 12:35 PM
Unknown Object (File)
Oct 18 2025, 7:33 PM
Unknown Object (File)
Oct 18 2025, 1:59 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