Package: davfs2
Version: 0.2.3-2
Followup-For: Bug #324968
Hi,
the patch appended is obviosly bogus, so bogus I don't wanna talk about
it ;) This hopefully looks better:
Index: src/webdav.c
===================================================================
--- src/webdav.c (revision 197)
+++ src/webdav.c (working copy)
@@ -388,9 +388,12 @@
/* displayname */
data = ne_propset_value(set, &stat_props[0]);
- if (data)
+ if (data) {
result->fname = ne_path_unescape(data);
- else {
+ /* strip trailing '/' from directories */
+ if( strlen(result->fname)>1 &&
result->fname[strlen(result->fname)-1]=='/')
+ result->fname[strlen(result->fname)-1]=0;
+ } else {
char *parent = ne_path_parent(uri);
char *fname;
/* It is / */
@@ -402,8 +405,9 @@
while(*fname=='/')
fname++;
- if( strlen(fname)>1 && *(fname+strlen(fname)-1)=='/')
- *(fname+strlen(fname)-1)=0;
+ /* strip trailing '/' from directories */
+ if( strlen(fname)>1 && fname[strlen(fname)-1]=='/')
+ fname[strlen(fname)-1]=0;
result->fname = ne_strdup(fname); //TODO: free me
NE_FREE(tofree);
Could you please forward this upstream since it fixes quiet some
application crashes when working against a davenport davfs server.
Tested with apache2+davfs and davenport.
Cheers,
-- Guido
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc3-agx0
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages davfs2 depends on:
ii libc6 2.3.5-5 GNU C Library: Shared libraries an
ii libneon24 0.24.7.dfsg-2 An HTTP and WebDAV client library
ii libssl0.9.7 0.9.7g-1 SSL shared libraries
ii libxml2 2.6.20-1 GNOME XML library
ii zlib1g 1:1.2.3-3 compression library - runtime
davfs2 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]