summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/davfs2/files')
-rw-r--r--net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch17
-rw-r--r--net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch59
2 files changed, 76 insertions, 0 deletions
diff --git a/net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch b/net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch
new file mode 100644
index 0000000..e90f7bd
--- /dev/null
+++ b/net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch
@@ -0,0 +1,17 @@
+--- src/mount_davfs.c.old 2009-10-18 18:34:19.000000000 +0300
++++ src/mount_davfs.c 2010-10-19 23:23:18.243000000 +0300
+@@ -682,6 +682,13 @@
+
+ setfsent();
+ struct fstab *ft = getfsfile(mpoint);
++ if (!ft) {
++ char *mp = NULL;
++ if (asprintf(&mp, "%s/", mpoint) < 0) abort();
++ ft = getfsfile(mp);
++ if (mp) free(mp);
++ }
++
+ if (!ft || !ft->fs_spec)
+ error(EXIT_FAILURE, 0, _("no entry for %s found in %s"), url,
+ _PATH_FSTAB);
+
diff --git a/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch b/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch
new file mode 100644
index 0000000..18d65bb
--- /dev/null
+++ b/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch
@@ -0,0 +1,59 @@
+http://bugs.gentoo.org/332865
+
+--- src/dav_coda.c
++++ src/dav_coda.c
+@@ -52,6 +52,9 @@
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
++#ifdef HAVE_SYS_STAT_H
++#include <sys/stat.h>
++#endif
+
+ #include "defaults.h"
+ #include "mount_davfs.h"
+--- src/dav_fuse.c
++++ src/dav_fuse.c
+@@ -41,6 +41,12 @@
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
++#ifdef HAVE_SYS_STAT_H
++#include <sys/stat.h>
++#endif
+
+ #include "defaults.h"
+ #include "mount_davfs.h"
+--- src/kernel_interface.c
++++ src/kernel_interface.c
+@@ -44,6 +44,12 @@
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
++#ifdef HAVE_SYS_STAT_H
++#include <sys/stat.h>
++#endif
+
+ #ifdef HAVE_SYS_MOUNT_H
+ #include <sys/mount.h>
+--- src/webdav.c
++++ src/webdav.c
+@@ -47,6 +47,12 @@
+ #ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+ #endif
++#ifdef HAVE_SYS_TYPES_H
++#include <sys/types.h>
++#endif
++#ifdef HAVE_SYS_STAT_H
++#include <sys/stat.h>
++#endif
+
+ #include <ne_alloc.h>
+ #include <ne_auth.h>