diff options
author | smitsohu <smitsohu@gmail.com> | 2018-08-19 21:07:10 +0200 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2018-08-19 21:07:10 +0200 |
commit | ee3fa54523e7bb29b4230a884d3df4ec07f69577 (patch) | |
tree | 2df729b7c0fefcbbbe637caa6245601fdaf948da /src/lib | |
parent | qutebrowser.profile: noblacklist /usr/lib/llvm (diff) | |
download | firejail-ee3fa54523e7bb29b4230a884d3df4ec07f69577.tar.gz firejail-ee3fa54523e7bb29b4230a884d3df4ec07f69577.tar.zst firejail-ee3fa54523e7bb29b4230a884d3df4ec07f69577.zip |
fix pid_get_uid for the root user
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/pid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pid.c b/src/lib/pid.c index 3c804716d..b73a57409 100644 --- a/src/lib/pid.c +++ b/src/lib/pid.c | |||
@@ -398,7 +398,7 @@ void pid_read(pid_t mon_pid) { | |||
398 | pids[pid].parent = parent; | 398 | pids[pid].parent = parent; |
399 | } | 399 | } |
400 | else if (strncmp(buf, "Uid:", 4) == 0) { | 400 | else if (strncmp(buf, "Uid:", 4) == 0) { |
401 | char *ptr = buf + 5; | 401 | char *ptr = buf + 4; |
402 | while (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t')) { | 402 | while (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t')) { |
403 | ptr++; | 403 | ptr++; |
404 | } | 404 | } |