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
F107332295: D28466.diff
Sun, Jan 12, 3:04 PM
Unknown Object (File)
Sat, Dec 28, 8:34 AM
Unknown Object (File)
Tue, Dec 24, 11:17 PM
Unknown Object (File)
Mon, Dec 23, 5:21 PM
Unknown Object (File)
Dec 8 2024, 7:37 PM
Unknown Object (File)
Dec 6 2024, 10:23 PM
Unknown Object (File)
Nov 14 2024, 2:57 PM
Unknown Object (File)
Oct 26 2024, 9:49 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