shared: procfs_file_alloca: handle pid==0

when pid is set to 0 use /proc/self
This commit is contained in:
Simon Peeters
2014-01-05 00:59:13 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent 9dddaedfcc
commit b68fa010f7
5 changed files with 19 additions and 44 deletions
+2 -1
View File
@@ -33,7 +33,8 @@
static bool ignore_proc(pid_t pid) {
_cleanup_fclose_ FILE *f = NULL;
char c, *p;
char c;
const char *p;
size_t count;
uid_t uid;
int r;