Use the right mkdir function.

This commit is contained in:
Andreas Schneider 2008-05-15 17:56:51 +02:00
parent f89333c3c8
commit b08c361527

View file

@ -47,7 +47,7 @@ time_t csync_timediff(CSYNC *ctx) {
ctx->replica = ctx->remote.type;
dp = csync_vio_opendir(ctx, ctx->remote.uri);
if (dp == NULL) {
if (csync_vio_local_mkdir(ctx->remote.uri, 0755) < 0) {
if (csync_vio_mkdir(ctx, ctx->remote.uri, 0755) < 0) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_FATAL, "Unable to create directory on remote uri: %s - %s", luri, strerror(errno));
return -1;
}