diff options
-rw-r--r-- | libssh/misc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/misc.c b/libssh/misc.c index 5ab0501d..0df11464 100644 --- a/libssh/misc.c +++ b/libssh/misc.c @@ -77,6 +77,15 @@ char *ssh_get_user_home_dir(void) { return NULL; } + + /* we have read access on file */ + int ssh_file_readaccess_ok(const char *file) { + if (_access(file, 4) < 0) { + return 0; + } + + return 1; +} #else /* _WIN32 */ char *ssh_get_user_home_dir(void) { |