mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
process-util: add missing error check
This commit is contained in:
parent
45062a62ac
commit
ece6fc51e6
@ -596,6 +596,8 @@ int get_process_umask(pid_t pid, mode_t *ret) {
|
||||
r = get_proc_field(p, "Umask", WHITESPACE, &m);
|
||||
if (r == -ENOENT)
|
||||
return -ESRCH;
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
return parse_mode(m, ret);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user