Description: Fix temporary error logs paths build with DBHOST parameter
 which could contain slashes and make the path invalid
Author: Emmanuel Bouthenot <kolter@debian.org>
Bug-Debian: https://bugs.debian.org/767186
Forwarded: no
Last-Update: 2014-11-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/autopostgresqlbackup
+++ b/autopostgresqlbackup
@@ -296,8 +296,8 @@
 M=`date +%B`					# Month e.g January
 W=`date +%V`					# Week Number e.g 37
 VER=1.0							# Version Number
-LOGFILE=$BACKUPDIR/$DBHOST-`date +%N`.log			# Logfile Name
-LOGERR=$BACKUPDIR/ERRORS_$DBHOST-`date +%N`.log		# Logfile Name
+LOGFILE=$BACKUPDIR/${DBHOST//\//_}-`date +%N`.log			# Logfile Name
+LOGERR=$BACKUPDIR/ERRORS_${DBHOST//\//_}-`date +%N`.log		# Logfile Name
 BACKUPFILES=""
 
 # Add --compress pg_dump option to $OPT
