Blame SOURCES/rear-bz1655956.patch

9ae47a
diff --git a/usr/sbin/rear b/usr/sbin/rear
9ae47a
index a51f820c..e21156bf 100755
9ae47a
--- a/usr/sbin/rear
9ae47a
+++ b/usr/sbin/rear
9ae47a
@@ -527,6 +527,10 @@ Build date: $( date -R )
9ae47a
 if test "$WORKFLOW" != "help" ; then
9ae47a
     # Create temporary work area and register removal exit task:
9ae47a
     BUILD_DIR="$( mktemp -d -t rear.XXXXXXXXXXXXXXX || Error "Could not create build area '$BUILD_DIR'" )"
9ae47a
+    # Since 'mktemp' doesn't always return a path under /tmp, the build
9ae47a
+    # directory has always to be excluded for safety
9ae47a
+    BACKUP_PROG_EXCLUDE+=( "$BUILD_DIR" )
9ae47a
+
9ae47a
     QuietAddExitTask cleanup_build_area_and_end_program
9ae47a
     Log "Using build area '$BUILD_DIR'"
9ae47a
     ROOTFS_DIR=$BUILD_DIR/rootfs
9ae47a
@@ -582,3 +586,5 @@ if test "$WORKFLOW" != "help" ; then
9ae47a
 fi
9ae47a
 
9ae47a
 exit $EXIT_CODE
9ae47a
+
9ae47a
+# vim: set et ts=4 sw=4:
9ae47a
diff --git a/usr/share/rear/conf/default.conf b/usr/share/rear/conf/default.conf
9ae47a
index ef118998..52b05eea 100644
9ae47a
--- a/usr/share/rear/conf/default.conf
9ae47a
+++ b/usr/share/rear/conf/default.conf
9ae47a
@@ -47,7 +47,9 @@
9ae47a
 # is set in the environment where /usr/sbin/rear is called.
9ae47a
 # To have a specific working area directory prefix for Relax-and-Recover
9ae47a
 # specify in /etc/rear/local.conf something like
9ae47a
+#
9ae47a
 #   export TMPDIR="/prefix/for/rear/working/directory"
9ae47a
+#
9ae47a
 # where /prefix/for/rear/working/directory must already exist.
9ae47a
 # This is useful for example when there is not sufficient free space
9ae47a
 # in /tmp or $TMPDIR for the ISO image or even the backup archive.