aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/path.c b/lib/path.c
index 42b4eadf16..8da6c06db0 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -1028,7 +1028,7 @@ static int ul_path_cpuparse(struct path_cxt *pc, cpu_set_t **set, int maxcpus, i
if (!f)
return -errno;
- rc = fgets(buf, len, f) == NULL ? -errno : 0;
+ rc = fgets(buf, len, f) == NULL ? -EIO : 0;
fclose(f);
if (rc)