PERFORCE change 214734 for review
Robert Watson
rwatson at FreeBSD.org
Sun Jul 22 10:18:25 UTC 2012
http://p4web.freebsd.org/@@214734?ac=10
Change 214734 by rwatson at rwatson_cinnamon on 2012/07/22 10:17:39
Avoid a directory descriptor leak in libauditd when iterating over
possible audit trail directories when the first one fills.
Submitted by: guido
Affected files ...
.. //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 (text+ko) ====
@@ -26,7 +26,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#16 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 $
*/
#include <sys/param.h>
@@ -520,6 +520,7 @@
}
}
+ closedir(dirp);
}
oldest_time = current_time - expire_age;
More information about the p4-projects
mailing list