diff --git a/samba/filepropertiesplugin/model.cpp b/samba/filepropertiesplugin/model.cpp --- a/samba/filepropertiesplugin/model.cpp +++ b/samba/filepropertiesplugin/model.cpp @@ -85,7 +85,8 @@ continue; } KUser user(username); - if (user.userId().nativeId() >= defminuid) { + const uid_t nativeId = user.userId().nativeId(); + if (nativeId >= defminuid && nativeId <= defmaxuid) { userList << username; } }