aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-08-19 21:07:10 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2018-08-19 21:07:10 +0200
commitee3fa54523e7bb29b4230a884d3df4ec07f69577 (patch)
tree2df729b7c0fefcbbbe637caa6245601fdaf948da /src/lib
parentqutebrowser.profile: noblacklist /usr/lib/llvm (diff)
downloadfirejail-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.c2
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 }