summaryrefslogtreecommitdiffstats
path: root/lbu.in
diff options
context:
space:
mode:
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index a0dfe16..70ce6b9 100644
--- a/lbu.in
+++ b/lbu.in
@@ -80,7 +80,7 @@ mount_once() {
# check if given dir is read-only
is_ro() {
- local tmpfile=$(mktemp -p "$1")
+ local tmpfile=$(mktemp -p "$1" 2>/dev/null)
[ -z "$tmpfile" ] && return 0
rm -f "$tmpfile"
return 1