From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 1/4] errno: Include string for ELOOP
Date: Thu, 11 May 2017 11:10:58 +0200 [thread overview]
Message-ID: <20170511091101.5821-2-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20170511091101.5821-1-s.hauer@pengutronix.de>
Needed for printing a correct error message when symbolic link
loops are encountered.
Signed-off-by: Sascha Hauer <s.hauer@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2017-05-11 9:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 9:10 Implement symlinks to directories Sascha Hauer
2017-05-11 9:10 ` Sascha Hauer [this message]
2017-05-11 9:10 ` [PATCH 2/4] fs: drop path_check_prereq() Sascha Hauer
2017-05-11 9:11 ` [PATCH 3/4] fs: Implement links to directories Sascha Hauer
2017-05-11 19:34 ` Sascha Hauer
2017-05-11 9:11 ` [PATCH 4/4] ls: Fix showing " Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170511091101.5821-2-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox