aboutsummaryrefslogtreecommitdiff
path: root/libssh/keyfiles.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-09-09 13:42:00 +0200
committerAndreas Schneider <mail@cynapses.org>2009-09-09 13:42:00 +0200
commit97b6036cbf3e444384a8e9b7f082e22d9ea64fe1 (patch)
treef0d5f611d728dcc73d6b81153800003137ab1caa /libssh/keyfiles.c
parentdf4f7ed5b8ec4619c3435b9b3dc8efc6210f4447 (diff)
downloadlibssh-97b6036cbf3e444384a8e9b7f082e22d9ea64fe1.tar.gz
libssh-97b6036cbf3e444384a8e9b7f082e22d9ea64fe1.tar.xz
libssh-97b6036cbf3e444384a8e9b7f082e22d9ea64fe1.zip
Add a portable ssh_mkdir function for Windows.
Diffstat (limited to 'libssh/keyfiles.c')
-rw-r--r--libssh/keyfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c
index 55b2c778..0e73fcba 100644
--- a/libssh/keyfiles.c
+++ b/libssh/keyfiles.c
@@ -1469,7 +1469,7 @@ int ssh_write_knownhost(SSH_SESSION *session) {
return -1;
}
if (! ssh_file_readaccess_ok(dir)) {
- if (mkdir(dir, 0700) < 0) {
+ if (ssh_mkdir(dir, 0700) < 0) {
ssh_set_error(session, SSH_FATAL,
"Cannot create %s directory.", dir);
SAFE_FREE(dir);