summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-07 13:59:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-07 13:59:48 +0000
commitbc8f437ef812336397cc9f9322974272981aeff9 (patch)
tree2664bef8866bbf0ab9250408c35388c53ae04447 /lbu.in
parentfbf888234c0db5966447c3a29bf19b955c9ac66d (diff)
downloadalpine-conf-bc8f437ef812336397cc9f9322974272981aeff9.zip
lbu: hide error message when testing for read-only
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