Commit 04f9fd64 authored by Franco Fichtner's avatar Franco Fichtner

rc: another minor tweak for compat

parent 749ef5cd
......@@ -33,7 +33,11 @@ require_once('auth.inc');
$fp = fopen('php://stdin', 'r');
if (isset($argv[1]) && isset($argv[2]) && $argv[1] === '-h' && $argv[2] === '0') {
/*
* Mocking "pw usermod root -h 0", we always have the root
* user but we do not know what the future will bring...
*/
if (isset($argv[2]) && isset($argv[3]) && $argv[2] === '-h' && $argv[3] === '0') {
$admin_user = &getUserEntryByUID(0);
if (!$admin_user) {
echo "user not found\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment