From 88fb01098362d016d59e3f9c365ea90187775c47 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Wed, 15 Mar 2023 18:00:14 +0600 Subject: [PATCH] fix --- source/ublexec.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/ublexec.cc b/source/ublexec.cc index e4c88a3..139f269 100644 --- a/source/ublexec.cc +++ b/source/ublexec.cc @@ -801,7 +801,14 @@ void MainWindow::is_user_wheel(){ } void MainWindow::pars_users() { - int uid_max = 60000; + //string str_uid_max = this->call("grep \"^UID_MAX\" /etc/login.defs | xargs | cut -d ' ' -f 2)"); + //int uid_max = 0; + //if (str_uid_max.length() > 3){ + // int uid_max = stoi(str_uid_max); + //} + //else{ + int uid_max = 65534; + //} while (true) { errno = 0; passwd* entry = getpwent();