Changeset 44073 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
- Timestamp:
- Dec 10, 2012 9:39:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r44044 r44073 460 460 dbus_message_iter_get_basic(&itMsg, &uid); 461 461 462 /** @todo Add support for getting UID_MIN (/etc/login.defs on 463 * Debian). */ 464 int uid_min = 1000; 465 462 466 /* Look up user name (realname) from uid. */ 463 467 setpwent(); 464 468 struct passwd *ppwEntry = getpwuid(uid); 465 469 if ( ppwEntry 466 && ppwEntry->pw_uid >= 1000/* Only respect users, not daemons etc. */470 && ppwEntry->pw_uid >= uid_min /* Only respect users, not daemons etc. */ 467 471 && ppwEntry->pw_name) 468 472 {
Note:
See TracChangeset
for help on using the changeset viewer.