diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-06-02 16:01:40 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-07-09 18:55:17 +0200 |
commit | 82fcf663cf2cec519185330964c9fdee956047d8 (patch) | |
tree | 5aaceb97530e9ce8cede367aa6e0812ebca121b8 /src/basic/glob-util.h | |
parent | a2861e9b9c60bb697854a1aa317c0c365204aab1 (diff) | |
download | systemd-82fcf663cf2cec519185330964c9fdee956047d8.tar.gz |
basic/glob-util: add helper to strip the glob part from a glob
(cherry picked from commit 1e472a6ce4747a1f10954fb239df73580c8e7411)
Diffstat (limited to 'src/basic/glob-util.h')
-rw-r--r-- | src/basic/glob-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/glob-util.h b/src/basic/glob-util.h index d2f8718d5a..fc86e990dd 100644 --- a/src/basic/glob-util.h +++ b/src/basic/glob-util.h @@ -13,6 +13,8 @@ int safe_glob(const char *path, int flags, glob_t *pglob); int glob_exists(const char *path); int glob_extend(char ***strv, const char *path, int flags); +int glob_non_glob_prefix(const char *path, char **ret); + #define _cleanup_globfree_ _cleanup_(globfree) _pure_ static inline bool string_is_glob(const char *p) { |