aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-08-01 12:45:01 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-08-06 16:52:24 +0200
commit7857cd1aa5e8979175b2f68df8cbe70921156e18 (patch)
tree7afc5f8e3f8678e5517c7196dd0687e0a5013962 /include
parent3737e5f0e75f355895bf0b46a33b1c1621477226 (diff)
downloadlibssh-7857cd1aa5e8979175b2f68df8cbe70921156e18.tar.gz
libssh-7857cd1aa5e8979175b2f68df8cbe70921156e18.tar.xz
libssh-7857cd1aa5e8979175b2f68df8cbe70921156e18.zip
misc: Introduce internal function ssh_dir_writeable()
The introduced internal function checks if the provided path is for an existing directory which is accessible for writing. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h
index 769f2da0..a6108fcc 100644
--- a/include/libssh/misc.h
+++ b/include/libssh/misc.h
@@ -26,6 +26,7 @@
char *ssh_get_user_home_dir(void);
char *ssh_get_local_username(void);
int ssh_file_readaccess_ok(const char *file);
+int ssh_dir_writeable(const char *path);
char *ssh_path_expand_tilde(const char *d);
char *ssh_path_expand_escape(ssh_session session, const char *s);