diff options
Diffstat (limited to 'net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch')
-rw-r--r-- | net-fs/davfs2/files/davfs2-1.4.5-fstab-bugfix.patch | 17 |
1 files changed, 17 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); + |