Page MenuHomeFreeBSD

Force diff report_identical test to use unprivileged_user

Authored by olivier on Tue, Feb 2, 9:50 PM.



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

R10 FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

olivier created this revision.
This revision is now accepted and ready to land.Wed, Feb 3, 2:38 PM