- fix returnvalue of _getImmutableFunction()
This commit is contained in:
@@ -56,11 +56,11 @@ function _getImmutableFunction($remove = false)
|
|||||||
if((int)$return_var != 0)
|
if((int)$return_var != 0)
|
||||||
{
|
{
|
||||||
// FreeBSD style
|
// FreeBSD style
|
||||||
return 'chflags '.($remove === true) ? 'noschg ' : 'schg ';
|
return 'chflags '.(($remove === true) ? 'noschg ' : 'schg ');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Linux style
|
// Linux style
|
||||||
return 'chattr '.($remove === true) ? '-i ' : '+i ';
|
return 'chattr '.(($remove === true) ? '-i ' : '+i ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user