From 632dbfd393543ac057bf2b2aef6eaf5db5aa168e Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Mon, 16 Jul 2018 02:19:33 -0400
Subject: slbt_dump_machine(): do not use the non-portable (oversight) EBADR as
 a hint.

---
 src/helper/slbt_dump_machine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

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;
 	}
 
-- 
cgit v1.2.3