- fix returnvalue of _getImmutableFunction()

This commit is contained in:
Michael Kaufmann (d00p)
2010-08-10 08:20:20 +00:00
parent 4b84d978d1
commit 599d179c4d

View File

@@ -56,11 +56,11 @@ function _getImmutableFunction($remove = false)
if((int)$return_var != 0)
{
// FreeBSD style
return 'chflags '.($remove === true) ? 'noschg ' : 'schg ';
return 'chflags '.(($remove === true) ? 'noschg ' : 'schg ');
}
else
{
// Linux style
return 'chattr '.($remove === true) ? '-i ' : '+i ';
return 'chattr '.(($remove === true) ? '-i ' : '+i ');
}
}