diff --git a/source/ublexec.cc b/source/ublexec.cc index 3d67f24..b8c8fb5 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -797,6 +797,7 @@ void MainWindow::is_user_wheel(){ } void MainWindow::pars_users() { + int uid_max = 65534; while (true) { errno = 0; passwd* entry = getpwent(); @@ -806,11 +807,10 @@ void MainWindow::pars_users() { } break; } - if (entry->pw_uid >= 1000 && entry->pw_uid != 65534) { + if ((entry->pw_uid >= 1000 && entry->pw_uid != uid_max) || entry->pw_uid == 0) { cmbUser->append(entry->pw_name); } } - cmbUser->append("root"); endpwent(); }