summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions b/functions
index 9c2ef5b..c3fd387 100644
--- a/functions
+++ b/functions
@@ -1274,6 +1274,12 @@ check_sane_mount () {
*freebsd*|hurd*)
;;
illumos*|solaris*)
+ mknod "$1/test-dev-null" c 67 2 || return 1
+ if ! echo test > "$1/test-dev-null"; then
+ rm -f "$1/test-dev-null"
+ return 1
+ fi
+ rm -f "$1/test-dev-null"
;;
*)
mknod "$1/test-dev-null" c 1 3 || return 1