summaryrefslogtreecommitdiffhomepage
path: root/src/helper
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-16 02:19:33 -0400
committermidipix <writeonce@midipix.org>2018-07-16 02:19:33 -0400
commit632dbfd393543ac057bf2b2aef6eaf5db5aa168e (patch)
tree138c808e271ff80f21ba26a9977a485ab55e3ef8 /src/helper
parent86e387f3d29e0804c78eec41914e08b184c22a43 (diff)
downloadslibtool-632dbfd393543ac057bf2b2aef6eaf5db5aa168e.tar.bz2
slibtool-632dbfd393543ac057bf2b2aef6eaf5db5aa168e.tar.xz
slbt_dump_machine(): do not use the non-portable (oversight) EBADR as a hint.
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/slbt_dump_machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c
index 3e0c65d..fe04fc9 100644
--- a/src/helper/slbt_dump_machine.c
+++ b/src/helper/slbt_dump_machine.c
@@ -113,13 +113,13 @@ int slbt_dump_machine(
0);
if ((rpid != pid) || code) {
- errno = EBADR;
+ errno = ESTALE;
return -1;
}
/* newline verification */
if ((mark == machine) || (*--mark != '\n')) {
- errno = EBADR;
+ errno = ERANGE;
return -1;
}