[openssh-commits] [openssh] branch V_10_6 updated: fix bad test in !HAVE_OPENAT fallback path
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 14 15:22:43 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch V_10_6
in repository openssh.
The following commit(s) were added to refs/heads/V_10_6 by this push:
new 5cdbed31a fix bad test in !HAVE_OPENAT fallback path
5cdbed31a is described below
commit 5cdbed31a3757b3dd4a007ab27e7e4488c8096d1
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