summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-25 14:52:23 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-25 14:52:23 (EDT)
commitdf46b80eb6718a61ddd3ad2f69fb04ee6ff05694 (patch)
treefc6d72b7c358e4e6541a3b89209f71bec7e56361 /lib
parent0a484351f2f46076b64fecd9a62a2206d9c4ace9 (diff)
block_mount(): Use get_vardata_dir()
Diffstat (limited to 'lib')
-rw-r--r--lib/block.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/block.sh b/lib/block.sh
index 7060690..e25b4e7 100644
--- a/lib/block.sh
+++ b/lib/block.sh
@@ -22,6 +22,7 @@
_BLOCK_SM=1
use rand
+use vardata
is_block()
{
@@ -41,8 +42,7 @@ block_mount()
fi
rand
- # FIXME: Hardcoded tmpdir
- dir="/tmp/prokit-block-$(printf '%010d' ${rand_x})"
+ dir="$(get_vardata_dir 'mount')/block-$(printf '%010d' ${rand_x})"
if ! mkdir "${dir}"; then
error 2 "$(get_msg 'block_mkdir_fail' "${dir}")"
fi