]> granicus.if.org Git - procps-ng/commit
library: fix a potential error relating to 'exe' logic
authorJim Warner <james.warner@comcast.net>
Tue, 22 Dec 2020 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Mon, 28 Dec 2020 21:48:23 +0000 (08:48 +1100)
commite76c773561ff68ad0c2884b86fce12b6733c96f6
tree6d100e1efaeb11b07e2f2555bb8c54b229b94d98
parentfd64b91d093f9b08764818195db07d7f2d9653f8
library: fix a potential error relating to 'exe' logic

After 'errno' management was standardized, a couple of
fields were added to the <pids> api. Only 1 (PIDS_EXE)
involved dynamic memory and, unfortunately, it did not
conform to that expected normalized ENOMEM convention.

Reference(s):
. Jun 2018, added 'exe' to library
commit ad4269f1189d5a7d68765e291bcfa981b6731c25
. Nov 2017, standardized 'errno' management
commit 06be33b43e5ff3f2658e77ef79441ac2e970cfd7

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/readproc.c