From fd722acd6251adef20afb5493626c5d8d0a69e89 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 4 Sep 2009 13:43:40 +0000 Subject: [PATCH] -Change xCAT WebUI to not recommend world writable log file as a way to let the WebUI read it git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-UI/lib/functions.php b/xCAT-UI/lib/functions.php index fe04db9d9..2642257c9 100644 --- a/xCAT-UI/lib/functions.php +++ b/xCAT-UI/lib/functions.php @@ -306,7 +306,7 @@ function getLastLine($line){ if($line == ''){ $line = 0; }; $f = "/var/log/messages"; $fp = fopen($f, 'r'); - if($fp === false){ echo "Couldn't open /var/log/messages. Hint: chmod 666 /var/log/messages might make it work.\n"; return 0; } + if($fp === false){ echo "Couldn't open /var/log/messages. Hint: chmod 644 /var/log/messages might make it work.\n"; return 0; } $pos = -2; $t = " "; // number of new lines we have seen.