Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2e1a0817daa15d42cec4b126afe40cd2 > files > 3

davfs2-1.3.3-1mdv2009.0.src.rpm

--- src/webdav.c	2008-04-29 03:23:31.000000000 -0400
+++ src/webdav.c.oden	2008-05-22 06:45:27.000000000 -0400
@@ -1512,7 +1512,7 @@ static int block_writer(void *userdata, 
 
     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, 0600);
     if (ctx->fd <= 0) {
         ne_set_error(session, _("%i can't open cache file"), 0);
         ctx->error = EIO;