diff options
Diffstat (limited to 'src/nm-session-monitor.c')
-rw-r--r-- | src/nm-session-monitor.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c index 6e2d95a219..9fa9215e7a 100644 --- a/src/nm-session-monitor.c +++ b/src/nm-session-monitor.c @@ -281,28 +281,6 @@ ck_finalize (NMSessionMonitor *monitor) NM_DEFINE_SINGLETON_GETTER (NMSessionMonitor, nm_session_monitor_get, NM_TYPE_SESSION_MONITOR); /** - * nm_session_monitor_user_to_uid: - * @user: User naee. - * @out_uid: Return location for UID. - * - * Translates a user name to a UID. - */ -gboolean -nm_session_monitor_user_to_uid (const char *user, uid_t *out_uid) -{ - struct passwd *pw = getpwnam (user); - - g_assert (out_uid); - - if (!pw) - return FALSE; - - *out_uid = pw->pw_uid; - - return TRUE; -} - -/** * nm_session_monitor_session_exists: * @self: the session monitor * @uid: A user ID. |