diff options
Diffstat (limited to 'src/sd-login.c')
-rw-r--r-- | src/sd-login.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/sd-login.c b/src/sd-login.c index 6dfc2d086e..b7ae870af4 100644 --- a/src/sd-login.c +++ b/src/sd-login.c @@ -349,14 +349,10 @@ _public_ int sd_session_get_uid(const char *session, uid_t *uid) { if (!s) return -EIO; - r = safe_atolu(s, &ul); + r = parse_uid(s, uid); free(s); - if (r < 0) - return r; - - *uid = (uid_t) ul; - return 0; + return r; } _public_ int sd_session_get_seat(const char *session, char **seat) { |