summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-06-12 20:57:41 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-06-12 21:15:53 -0400
commit4201ce672a267e081ec5ba6f36ae5cf18db8187f (patch)
tree9fe0d18b452b45eabf17fee738fd841c386560bd /src/systemctl/systemctl.c
parent18dade5aaee9f13efb95e6359723974d811c9b1e (diff)
process-util: remove broken support for pid==0
Our functions that query /proc/pid/ support using pid==0 to mean self. get_process_id also seemed to support that, but it was not implemented correctly: the result should be in *uid, not returned, and also it gave completely bogus result when called from get_process_gid(). But afaict, get_process_{uid,gid} were never called with pid==0, so it's not an actual bug. Remove the broken code to avoid confusion.
Diffstat (limited to 'src/systemctl/systemctl.c')
0 files changed, 0 insertions, 0 deletions