Fix pasto in fallback code.
There is no parameter called "pathname", it should simply be "path". bz#3059, patch from samuel at cendio.se.
This commit is contained in:
parent
e83c989bfd
commit
d0e51810f3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue