diff options
author | Kay Sievers <kay@vrfy.org> | 2014-07-01 16:00:05 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-07-01 16:00:05 +0200 |
commit | f841a154efbb3162d2a732936f031ac7a6b0d4cf (patch) | |
tree | 914f57c79f393a34fa7fa4bab808eeb3d3f37ca9 /src/shared/audit.c | |
parent | 3058e017fced6d5c8712e10c8c1477421bc1e960 (diff) |
parse_uid: return -ENXIO for -1 uids
Diffstat (limited to 'src/shared/audit.c')
-rw-r--r-- | src/shared/audit.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/audit.c b/src/shared/audit.c index 5466447737..f101050825 100644 --- a/src/shared/audit.c +++ b/src/shared/audit.c @@ -77,9 +77,6 @@ int audit_loginuid_from_pid(pid_t pid, uid_t *uid) { if (r < 0) return r; - if (u == (uid_t) -1) - return -ENXIO; - *uid = (uid_t) u; return 0; } |