diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-26 16:51:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-26 18:09:01 +0100 |
commit | 844416b64c15f7b417d79bf64df9f475cf4d6047 (patch) | |
tree | 4a5bb769bcaa05fd97d861609512ace1ed68e23e /src/basic/stat-util.h | |
parent | 0c9448fa8201ad2e2a2dde57f4d4b7e48a34c522 (diff) | |
download | systemd-844416b64c15f7b417d79bf64df9f475cf4d6047.tar.gz systemd-844416b64c15f7b417d79bf64df9f475cf4d6047.tar.bz2 systemd-844416b64c15f7b417d79bf64df9f475cf4d6047.zip |
stat-util: add fd_verify_directory(), similar to fd_verify_regular()
Diffstat (limited to 'src/basic/stat-util.h')
-rw-r--r-- | src/basic/stat-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h index 1a725f1da0..84400a6083 100644 --- a/src/basic/stat-util.h +++ b/src/basic/stat-util.h @@ -59,3 +59,6 @@ int path_is_temporary_fs(const char *path); int stat_verify_regular(const struct stat *st); int fd_verify_regular(int fd); + +int stat_verify_directory(const struct stat *st); +int fd_verify_directory(int fd); |