[PATCH 1/4] errno: Include string for ELOOP

Sascha Hauer s.hauer at pengutronix.de
Thu May 11 02:10:58 PDT 2017


Needed for printing a correct error message when symbolic link
loops are encountered.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/misc.c b/common/misc.c
index f0f0b808b7..c5d3704c82 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -66,6 +66,7 @@ const char *strerror(int errnum)
 	case	ENETDOWN	: str = "Network is down"; break;
 	case	ETIMEDOUT	: str = "Connection timed out"; break;
 	case	EPROBE_DEFER	: str = "Requested probe deferral"; break;
+	case	ELOOP		: str = "Too many symbolic links encountered"; break;
 #if 0 /* These are probably not needed */
 	case	ENOTBLK		: str = "Block device required"; break;
 	case	EFBIG		: str = "File too large"; break;
-- 
2.11.0




More information about the barebox mailing list