From 61ae21f1e82b1ee8955b6fceff822e0891f69718 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 24 Mar 2017 15:15:03 -0400 Subject: [PATCH] Revert "Recreate boot log at each boot instead of appending" This reverts commit 9abbd88835a181cda1427d61d92ef5685ad8a81b. I'm getting requests to keep old boot logs around. If anyone wants to carve up boot.log, they can just use logrotate.d --- src/libply/ply-logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libply/ply-logger.c b/src/libply/ply-logger.c index 789ad4ef..429e1ff1 100644 --- a/src/libply/ply-logger.c +++ b/src/libply/ply-logger.c @@ -40,7 +40,7 @@ #include "ply-list.h" #ifndef PLY_LOGGER_OPEN_FLAGS -#define PLY_LOGGER_OPEN_FLAGS (O_WRONLY | O_TRUNC | O_CREAT | O_NOFOLLOW | O_CLOEXEC) +#define PLY_LOGGER_OPEN_FLAGS (O_WRONLY | O_APPEND | O_CREAT | O_NOFOLLOW | O_CLOEXEC) #endif #ifndef PLY_LOGGER_MAX_INJECTION_SIZE