File compile-error-open.patch of Package fuse-davfs2

diff -urN davfs2-1.3.3/src/webdav.c davfs2-1.3.3.leo//src/webdav.c
--- davfs2-1.3.3/src/webdav.c	2008-06-28 19:20:07.000000000 +0200
+++ davfs2-1.3.3.leo//src/webdav.c	2009-01-14 17:02:32.000000000 +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_TRUNC, S_IRUSR | S_IWUSR);
     if (ctx->fd <= 0) {
         ne_set_error(session, _("%i can't open cache file"), 0);
         ctx->error = EIO;
openSUSE Build Service is sponsored by