From 02ffef7501e137ea83563b1b16937e938d3b8c4d Mon Sep 17 00:00:00 2001 From: Elijah Saxon Date: Fri, 7 Oct 2005 16:02:27 +0000 Subject: applied patch to rdiff.helper, removed /etc/passwd from mysql handler. --- handlers/mysql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handlers/mysql') diff --git a/handlers/mysql b/handlers/mysql index 4ac631b..569b0a2 100644 --- a/handlers/mysql +++ b/handlers/mysql @@ -95,7 +95,7 @@ fi defaultsfile="" if [ "$dbusername" != "" -a "$dbpassword" != "" ]; then - home=`grep '^root:' /etc/passwd | awk -F: '{print $6}'` + home=`getent passwd "root" | awk -F: '{print $6}'` [ -d $home ] || fatal "Can't find root's home directory ($home)." mycnf="$home/.my.cnf" if [ -f $mycnf ]; then -- cgit v1.2.3