From 02c79a16934505bc9e47edc6dc31969a2540eadd Mon Sep 17 00:00:00 2001 From: wbaumann Date: Sun, 18 Mar 2012 10:42:42 +0000 Subject: [PATCH] Translate HTTP 405 into ENOENT --- ChangeLog | 9 +++++++-- src/webdav.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1c8e24e..50c7df6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,13 @@ ChangeLog for davfs2 -------------------- -2012-03-1 Werner Baumann (werner.baumann@onlinehome.de) - * webdav.c, dav_init_cache: +2012-03-18 Werner Baumann (werner.baumann@onlinehome.de) + * webdav.c, get_ne_error: + Translate HTTP 405 into ENOENT. + (http://savannah.nongnu.org/support/?107869) + +2012-03-01 Werner Baumann (werner.baumann@onlinehome.de) + * cache.c, dav_init_cache: Fix integer overrun. 2012-02-05 Werner Baumann (werner.baumann@onlinehome.de) diff --git a/src/webdav.c b/src/webdav.c index 12c61a1..86ea81d 100644 --- a/src/webdav.c +++ b/src/webdav.c @@ -1336,6 +1336,7 @@ get_ne_error(const char *method) case 301: /* Moved Permanently */ case 303: /* See Other */ case 404: /* Not Found */ + case 405: /* Method Not Allowed */ case 410: /* Gone */ return ENOENT; case 408: /* Request Timeout */ @@ -1345,7 +1346,6 @@ get_ne_error(const char *method) return EACCES; case 400: /* Bad Request */ case 403: /* Forbidden */ - case 405: /* Method Not Allowed */ case 409: /* Conflict */ case 411: /* Length Required */ case 412: /* Precondition Failed */