-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
This commit is contained in:
jbjohnso 2009-09-04 13:43:40 +00:00
parent 15f3af3e40
commit fd722acd62

View File

@ -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.