diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-13 16:01:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-13 16:01:44 +0200 |
commit | ca9cdf93afb1d48ddc4132eaece8e3c9b682166d (patch) | |
tree | 4f7fc435f60284be89e8fa6ba21117688ca4ce21 /src/basic/process-util.c | |
parent | 357bb46af6633f7f03cfa4a23619b5a20a29a8b8 (diff) | |
parent | 4201ce672a267e081ec5ba6f36ae5cf18db8187f (diff) |
Merge pull request #3518 from keszybz/test-process-util
Enhance test-process-util to take the PID to look at
Diffstat (limited to 'src/basic/process-util.c')
-rw-r--r-- | src/basic/process-util.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c index f6bde20fc5..08fa98bb9e 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -325,9 +325,6 @@ static int get_process_id(pid_t pid, const char *field, uid_t *uid) { assert(field); assert(uid); - if (pid == 0) - return getuid(); - p = procfs_file_alloca(pid, "status"); f = fopen(p, "re"); if (!f) { |