From ec4584f97e84dbf59922a7065c882bee254b0c24 Mon Sep 17 00:00:00 2001 From: tokul Date: Thu, 27 Jan 2005 12:44:19 +0000 Subject: [PATCH] fixed incorrect test. $adm_id was getting value of fileowner && function_exists git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8712 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/administrator/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/administrator/auth.php b/plugins/administrator/auth.php index 138390a7..d356fec3 100644 --- a/plugins/administrator/auth.php +++ b/plugins/administrator/auth.php @@ -36,7 +36,7 @@ function adm_check_user() { } else if (file_exists(SM_PATH . 'config/admins')) { $auths = file(SM_PATH . 'config/admins'); $auth = in_array("$username\n", $auths); - } else if ($adm_id = fileowner(SM_PATH . 'config/config.php') && + } else if (($adm_id = fileowner(SM_PATH . 'config/config.php')) && function_exists('posix_getpwuid')) { $adm = posix_getpwuid( $adm_id ); $auth = ($username == $adm['name']); -- 2.25.1