system: for recovery reasons can't depend on mwexec() #6059

This commit is contained in:
Franco Fichtner 2022-09-30 10:02:49 +02:00
parent 74238dec17
commit e48fa6539f

View File

@ -270,7 +270,7 @@ function recover_base($etc_group, $etc_master_passwd, $etc_shells, $etc_ttys, $p
];
/* make sure the temporary user does not linger */
mwexec('pw userdel installer', true);
exec('/usr/sbin/pw userdel installer');
foreach ($partial_restore as $file => $content) {
if (!file_exists($file) || filesize($file) === 0) {