From d89cd955d0fb5b45ec69e02e948c18eab9feb9bf Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 20 Nov 2015 09:18:12 -0500 Subject: [PATCH] Fixed issue #154: Log files are overwritten rather than appended. --- lib/BackRest/Common/Log.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BackRest/Common/Log.pm b/lib/BackRest/Common/Log.pm index b37880f34..6552c72f9 100644 --- a/lib/BackRest/Common/Log.pm +++ b/lib/BackRest/Common/Log.pm @@ -113,7 +113,7 @@ sub logFileSet $bExists = true; } - sysopen($hLogFile, $strFile, O_WRONLY | O_CREAT, 0660) + sysopen($hLogFile, $strFile, O_WRONLY | O_CREAT | O_APPEND, 0660) or confess &log(ERROR, "unable to open log file ${strFile}", ERROR_FILE_OPEN); if ($bExists)