Blame SOURCES/bz1078078-pcmk-crm_report_suppress_logging_errors_after_the_target_directory_has_been_compressed.patch

7ebc05
commit 3de41452c059cb44028433bea1ab6425e239a38c
7ebc05
Author: Andrew Beekhof <andrew@beekhof.net>
7ebc05
Date:   Wed Dec 18 08:12:29 2013 +1100
7ebc05
7ebc05
    Fix: crm_report: Suppress logging errors after the target directory has been compressed
7ebc05
    
7ebc05
    (cherry picked from commit 571c7b0e66b174442604883fe105dbe8d10f1bc4)
7ebc05
7ebc05
diff --git a/tools/report.common.in b/tools/report.common.in
7ebc05
index 9742f1c..bba7c63 100644
7ebc05
--- a/tools/report.common.in
7ebc05
+++ b/tools/report.common.in
7ebc05
@@ -76,7 +76,7 @@ record() {
7ebc05
     if [ x != x"$REPORT_HOME" -a -d "${REPORT_HOME}/$shorthost" ]; then
7ebc05
         rec="${REPORT_HOME}/$shorthost/report.out"
7ebc05
 
7ebc05
-    elif [ x != x"${l_base}" ]; then
7ebc05
+    elif [ x != x"${l_base}" -a -d "${l_base}" ]; then
7ebc05
         rec="${l_base}/report.summary"
7ebc05
 
7ebc05
     else