From df46b80eb6718a61ddd3ad2f69fb04ee6ff05694 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 14:52:23 -0400 Subject: block_mount(): Use get_vardata_dir() --- (limited to 'lib/block.sh') 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 -- cgit v0.9.1