]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check for the posix extension - refs https://github.com/owncloud/core/pull/13282...
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 12 Jan 2015 19:17:02 +0000 (20:17 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 12 Jan 2015 19:17:02 +0000 (20:17 +0100)
console.php

index f6fba14b7f980cb53c7e74769af4032cf1ba5f81..6d3ab20bc16d4df67f609a598bc0ff5226c03611 100644 (file)
@@ -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']) {