Skip to content
Snippets Groups Projects
Commit 1f015523 authored by Thomas Müller's avatar Thomas Müller
Browse files

Check for the posix extension - refs...

parent 793e1e8d
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,10 @@ try {
}
if (!OC_Util::runningOnWindows()) {
if (!function_exists('posix_getuid')) {
echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL;
exit(0);
}
$user = posix_getpwuid(posix_getuid());
$configUser = posix_getpwuid(fileowner(OC::$SERVERROOT . '/config/config.php'));
if ($user['name'] !== $configUser['name']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment