Blame SOURCES/rear-bz1655956.patch

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