basic/fs-util: add a version of chmod_and_chown that doesn not use /proc

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-03-03 11:56:44 +01:00
parent 08c7c3216b
commit 6cb356ca9f
3 changed files with 92 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ int readlink_and_make_absolute(const char *p, char **r);
int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid);
int fchmod_and_chown(int fd, mode_t mode, uid_t uid, gid_t gid);
int chmod_and_chown_unsafe(const char *path, mode_t mode, uid_t uid, gid_t gid);
int fchmod_umask(int fd, mode_t mode);
int fchmod_opath(int fd, mode_t m);