[openssh-commits] [openssh] branch master updated: fix bad test in !HAVE_OPENAT fallback path
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 14 15:22:44 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new d551375fa fix bad test in !HAVE_OPENAT fallback path
d551375fa is described below
commit d551375fa96622dd3e5ac2bc0b8da1b5fd4634cb
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Wed Oct 14 15:22:08 2026 +1100
fix bad test in !HAVE_OPENAT fallback path
---
misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc.c b/misc.c
index 866f7b8e2..1f4e73d64 100644
--- a/misc.c
+++ b/misc.c
@@ -3330,7 +3330,7 @@ mkdir_path(const char *target, mode_t mode)
}
/* Work through the path, component-wise */
- while ((p = strsep(&dir, "/")) && p != '\0') {
+ while ((p = strsep(&dir, "/")) && *p != '\0') {
if (strlcat(path, "/", plen) >= plen ||
strlcat(path, p, plen) >= plen)
goto out;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list