-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:
parent
15f3af3e40
commit
fd722acd62
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user