diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2022-10-17 08:51:29 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2022-10-17 08:51:29 +0300 |
commit | 6afff1fc626904b3036822d571fe0051094d3449 (patch) | |
tree | 095379cad8cab2d5da6fe3fe1d1ff5a43a292119 /src/misc.h | |
parent | 6fa5cd6480c83240cff72265ccdc45bcdb9576f6 (diff) | |
download | bindfs-6afff1fc626904b3036822d571fe0051094d3449.tar.gz |
Fixed --resolve-symlinks when mountpoint name starts with source dir name.
Fixes #122
Diffstat (limited to 'src/misc.h')
-rw-r--r-- | src/misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,10 @@ const char *my_basename(const char *path); Otherwise, returns ".". */ const char *my_dirname(char *path); +/* Returns true if the initial path components of 'path' are the path components of 'prefix'. + Assumes 'strlen(prefix) == prefix_len'. */ +bool path_starts_with(const char *path, const char* prefix, size_t prefix_len); + /* Filters arguments in comma-separated lists prefixed by '-o'. * Allocates 'new_argv' and its strings, as well as some temporary data, into 'arena'. */ void filter_o_opts( |