diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2022-09-21 19:08:12 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2022-09-21 19:08:12 -0600 |
commit | 9e65960aec813da320391b09aa67879f1e666317 (patch) | |
tree | 5ef04ee48ca0185519c91e73fdc495707d8aa047 /include | |
parent | 912338f569bea4881e1b7850db154df4f4a01427 (diff) | |
download | sudo-9e65960aec813da320391b09aa67879f1e666317.tar.gz |
Add fchownat() systems without it.
Diffstat (limited to 'include')
-rw-r--r-- | include/sudo_compat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sudo_compat.h b/include/sudo_compat.h index a9212189e..87602154e 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -484,6 +484,11 @@ sudo_dso_public size_t sudo_strnlen(const char *str, size_t maxlen); # undef strnlen # define strnlen(_a, _b) sudo_strnlen((_a), (_b)) #endif /* HAVE_STRNLEN */ +#ifndef HAVE_FCHOWNAT +sudo_dso_public int sudo_fchownat(int dfd, const char *path, uid_t uid, gid_t gid, int flag); +# undef fchownat +# define fchownat(_a, _b, _c, _d, _e) sudo_fchownat((_a), (_b), (_c), (_d), (_e)) +#endif /* HAVE_FCHOWNAT */ #ifndef HAVE_MEMRCHR sudo_dso_public void *sudo_memrchr(const void *s, int c, size_t n); # undef memrchr |