/[base]
ViewVC logotype

Revision 339176


Jump to revision: Previous Next
Author: pjd
Date: Thu Oct 4 05:48:09 2018 UTC (5 years, 9 months ago)
Changed paths: 1
Log Message:
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)


Changed paths

Path Details
Directoryhead/contrib/openbsm/bin/auditdistd/trail.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27