From 3f3ebd9687c165f6e64bf748e40d300ca4e3c924 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 13 Apr 2021 14:03:36 +0200 Subject: [PATCH] system: also pick up root user --- src/etc/inc/auth.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index b53271fb5..cdef6c865 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -413,7 +413,7 @@ function local_sync_accounts() foreach ($data as $record) { $line = explode(':', $record); // filter system managed users and groups - if (count($line) < 3 || !strncmp($line[0], '_', 1) || $line[2] < 2000 || $line[2] > 65000) { + if (count($line) < 3 || !strncmp($line[0], '_', 1) || ($line[2] < 2000 && $line[0] != 'root') || $line[2] > 65000) { continue; } $current_data[$section][$line[2]] = $line;