diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-07-31 15:15:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-08-06 16:53:22 +0200 |
commit | 742918cb1cf99b711538dc9c21e3850fd487dfd6 (patch) | |
tree | 619949906f7b29d5346aac920fbbcba11b638ba6 /include | |
parent | 7857cd1aa5e8979175b2f68df8cbe70921156e18 (diff) | |
download | libssh-742918cb1cf99b711538dc9c21e3850fd487dfd6.tar.gz libssh-742918cb1cf99b711538dc9c21e3850fd487dfd6.tar.xz libssh-742918cb1cf99b711538dc9c21e3850fd487dfd6.zip |
misc: Introduce internal function ssh_mkdirs()
If the given path includes missing directories, ssh_mkdirs() tries to
create them recursively.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h index a6108fcc..543de04f 100644 --- a/include/libssh/misc.h +++ b/include/libssh/misc.h @@ -85,4 +85,7 @@ int ssh_match_group(const char *group, const char *object); void uint64_inc(unsigned char *counter); void ssh_log_hexdump(const char *descr, const unsigned char *what, size_t len); + +int ssh_mkdirs(const char *pathname, mode_t mode); + #endif /* MISC_H_ */ |