From 5c4d07699c7c6f83d10657f03ae89dee6735226f Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 11 Sep 2018 22:30:45 -0500 Subject: readlink: Report EIO on /proc read failure Signed-off-by: Samuel Holland --- libgcompat/readlink.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libgcompat') diff --git a/libgcompat/readlink.c b/libgcompat/readlink.c index 0db094c..9b3e2dd 100644 --- a/libgcompat/readlink.c +++ b/libgcompat/readlink.c @@ -80,6 +80,7 @@ ssize_t readlink(const char *path, char *buf, size_t len) close(fd); fail: exe[0] = '\0'; + errno = EIO; return -1; } -- cgit v1.2.3-70-g09d2