freebsd-dev/contrib/openbsm/bin
Pawel Jakub Dawidek ac67acf0ef When we look for a new trail file there might be a race between find trail
file name and opening it. This race was not properly handled, because we were
copying new name before checking for openat(2) error and when we were trying
again we were starting with the next trail file. This could result in skipping
distribution of such a trail file.

Fix this problem by checking for ENOENT first (only for .not_terminated files)
and then updating (or not) tr_filename before restarting the search.

PR:		200139
Reported by:	peter
Approved by:	re (kib)
2018-10-04 05:48:09 +00:00
..
audit Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
auditd auditd(8): register signal handlers interrutibly 2018-07-03 17:37:16 +00:00
auditdistd When we look for a new trail file there might be a race between find trail 2018-10-04 05:48:09 +00:00
auditfilterd Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
auditreduce Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
praudit praudit(1): return 0 on success 2018-06-17 17:10:35 +00:00
Makefile.am Merge OpenBSM 1.2 alpha 4. 2015-12-18 09:48:01 +00:00
Makefile.in Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00