--- src/webdav.c.org 2009-02-14 21:30:12.600987622 +0100 +++ src/webdav.c 2009-02-14 21:33:33.020984549 +0100 @@ -1513,7 +1513,7 @@ get_context *ctx = (get_context *) userdata; if (ctx->fd == 0) - ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC); + ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC, 0666); if (ctx->fd <= 0) { ne_set_error(session, _("%i can't open cache file"), 0); ctx->error = EIO;