Page MenuHomeFreeBSD

Backport patch to fix error check with access(3) failures
ClosedPublic

Authored by ngie on Apr 22 2019, 5:36 AM.
Tags
None
Referenced Files
F105904430: D20002.id.diff
Sun, Dec 22, 9:26 AM
Unknown Object (File)
Mon, Nov 25, 5:33 AM
Unknown Object (File)
Sat, Nov 23, 5:51 PM
Unknown Object (File)
Nov 21 2024, 3:50 PM
Unknown Object (File)
Nov 20 2024, 8:24 AM
Unknown Object (File)
Nov 7 2024, 7:38 AM
Unknown Object (File)
Nov 6 2024, 5:42 AM
Unknown Object (File)
Oct 18 2024, 8:14 AM
Subscribers

Details

Summary

The code was not properly checking the failure from access(3).

Backport the patch from GitHub (made after the 0.4 release) which fixes this
issue.

PR: 237459
Obtained from: https://github.com/jmmv/lutok (a23c7b894cf50dea5e927e36a3578b720fffcf23)

Test Plan

I built and installed the patched package on my host and reran the kyua tests
successfully, like so:

$ kyua test -k /usr/local/tests/kyua/Kyuafile
...
utils/text/templates_test:templates_def__get_vector__ok  ->  passed  [0.004s]
utils/text/templates_test:templates_def__get_vector__unknown  ->  passed  [0.005s]
utils/text/templates_test:templates_def__remove_variable  ->  passed  [0.004s]

Results file id is usr_local_tests_kyua.20190421-223154-368801
Results saved to /home/ngie/.kyua/store/results.usr_local_tests_kyua.20190421-223154-368801.db

1438/1438 passed (0 failed)
$ uname -a
FreeBSD fbsd-11-i386 11.2-STABLE FreeBSD 11.2-STABLE #0 r346333: Thu Apr 18 02:21:56 UTC 2019     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable