mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Ismael Luceno <>
Cc: Rich Felker <>, Ismael Luceno <>
Subject: [musl] [PATCH] nftw: Fix clobbering of errno
Date: Sun, 23 Jan 2022 16:45:17 +0100	[thread overview]
Message-ID: <> (raw)

Signed-off-by: Ismael Luceno <>
 src/misc/nftw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/nftw.c b/src/misc/nftw.c
index 8dcff7fefd2a..5b233b2b8e77 100644
--- a/src/misc/nftw.c
+++ b/src/misc/nftw.c
@@ -93,8 +93,8 @@ static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int,
 				  || (de->d_name[1]=='.'
 				   && !de->d_name[2]))) continue;
 				if (strlen(de->d_name) >= PATH_MAX-l) {
-					errno = ENAMETOOLONG;
+					errno = ENAMETOOLONG;
 					return -1;

                 reply	other threads:[~2022-01-23 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).