summaryrefslogtreecommitdiffstats
path: root/common/misc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-05-09 14:58:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-11 10:44:26 +0200
commit38197b847eea39d2af452f994220b4fdd27e305f (patch)
tree465d999635a3e4022ef4ab620777c209b2af27c9 /common/misc.c
parente648666112e7e99de621277e7c895a0341bd3c9d (diff)
downloadbarebox-38197b847eea39d2af452f994220b4fdd27e305f.tar.gz
errno: Include string for ELOOP
Needed for printing a correct error message when symbolic link loops are encountered. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/misc.c')
-rw-r--r--common/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/misc.c b/common/misc.c
index f0f0b80..c5d3704 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;