[openssh-commits] [openssh] 01/01: Fix pasto in fallback code.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat Aug 24 15:14:02 AEST 2019
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit d0e51810f332fe44ebdba41113aacf319d35f5a5
Author: Darren Tucker <dtucker at dtucker.net>
Date: Sat Aug 24 15:12:11 2019 +1000
Fix pasto in fallback code.
There is no parameter called "pathname", it should simply be "path".
bz#3059, patch from samuel at cendio.se.
---
openbsd-compat/bsd-misc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index aa1c7d7a..7a26ee40 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -172,7 +172,7 @@ fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag)
return -1;
}
# ifndef HAVE_FCHOWN
- return chown(pathname, owner, group);
+ return chown(path, owner, group);
# else
# ifdef O_NOFOLLOW
if (flag & AT_SYMLINK_NOFOLLOW)
@@ -203,7 +203,7 @@ fchmodat(int fd, const char *path, mode_t mode, int flag)
return -1;
}
# ifndef HAVE_FCHMOD
- return chown(pathname, owner, group);
+ return chmod(path, mode);
# else
# ifdef O_NOFOLLOW
if (flag & AT_SYMLINK_NOFOLLOW)
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list