about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2012-12-09 14:57:17 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2012-12-09 14:57:17 +0100
commit76b80c6108d14d17c343624329f948b612d5512d (patch)
treec7dfbc822a7ccfa1726d2e172887544193fc34e8
parentdd0fa2d4c32ea76a200bbd9a62691d4fd0f551ba (diff)
downloadrdumpfs-76b80c6108d14d17c343624329f948b612d5512d.tar.gz
rdumpfs-76b80c6108d14d17c343624329f948b612d5512d.tar.xz
rdumpfs-76b80c6108d14d17c343624329f948b612d5512d.zip
create tempfile in $TMPDIR, not cwd
-rwxr-xr-xrdumpfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdumpfs b/rdumpfs
index 54225ed..ec7482e 100755
--- a/rdumpfs
+++ b/rdumpfs
@@ -40,7 +40,7 @@ if [[ "$last" = "$now" ]]; then
   rsync_args+=(--delete-delay --delete-excluded)
 fi
 
-LOGFILE=$(mktemp .rdumpfs.XXXXXXXX.log)
+LOGFILE=$(mktemp -t .rdumpfs.XXXXXXXX.log)
 trap "rm -f $LOGFILE" INT QUIT TERM HUP EXIT
 
 rsync --log-file $LOGFILE "${rsync_args[@]}" "${src[@]}" "$dst/$now"