summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-11-08 22:45:31 +0100
committerunknown <serg@serg.mysql.com>2002-11-08 22:45:31 +0100
commit36f5ff834d62723e5a0e50b52ccb6cef157a276f (patch)
treebdc630d6ab1149907dddd50d80e96fd40a13b958 /scripts
parent93b95819daba16ce6ac2d915f34bae3c51be939b (diff)
downloadmariadb-git-36f5ff834d62723e5a0e50b52ccb6cef157a276f.tar.gz
fixed test for "root", on some installations / is mounted read-only
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mysqld_safe.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index f51eff6585f..2cc11bb0979 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -204,7 +204,7 @@ else
fi
USER_OPTION=""
-if test -w /
+if test "x$USER" = "xroot"
then
if test "$user" != "root" -o $SET_USER = 1
then