Package: davfs2
Version: 1.3.3-1
Severity: important

Function dav_head miscalculates the Last-Modified-Date. Under certain circumstances this can prevent davfs2 from uploading a changed version of a file to the server, or from downloading a new version.

The following patch fixes the problem.

diff -Naur davfs2-1.3.3/src/webdav.c davfs2-1.3.3.new/src/webdav.c
--- davfs2-1.3.3/src/webdav.c   2008-06-28 19:20:07.000000000 +0200
+++ davfs2-1.3.3.new/src/webdav.c       2008-08-08 18:50:11.000000000 +0200
@@ -762,7 +762,7 @@
         *mtime = ne_httpdate_parse(value);
     value = ne_get_response_header(req, "Content-Length");
     if (ret == 0 && length != 0 && value != NULL)
-        *mtime = strtol(value, NULL, 10);
+        *length = strtol(value, NULL, 10);
     value = ne_get_response_header(req, "Content-Type");
     if (ret == 0 && mime != NULL && value != NULL) {
         if (*mime != NULL)

Cheers
Werner




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to