summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2002-11-08 22:45:31 +0100
committerserg@serg.mysql.com <>2002-11-08 22:45:31 +0100
commitd7a0000711af2b168e7a7ecf4dac840b4df2eacb (patch)
treebdc630d6ab1149907dddd50d80e96fd40a13b958 /scripts
parenteb96421a113246ee29b468711a76a93873ab3c9f (diff)
downloadmariadb-git-d7a0000711af2b168e7a7ecf4dac840b4df2eacb.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