Blame SOURCES/rear-bz1655956.patch

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