--- davfs2-1.3.0/src/webdav.c 2009-02-06 03:31:40.000000000 -0600 +++ davfs2-1.3.0.old/src/webdav.c 2009-02-06 03:25:54.000000000 -0600 @@ -1498,7 +1498,7 @@ get_context *ctx = (get_context *) userdata; if (ctx->fd == 0) - ctx->fd = open(ctx->file, O_WRONLY | O_CREAT,0666 | O_TRUNC); + ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC); if (ctx->fd <= 0) { ne_set_error(session, _("%i can't open cache file"), 0); ctx->error = EIO;