diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-13 18:06:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-13 18:06:45 +0200 |
commit | 8edb1cd5a6a03b391003a1047e0b3ca6d22acd45 (patch) | |
tree | 751b35f97d8dcc1c9da4f0c81d9707701e8d6710 /package/davfs2/patches/patch-src_mount_davfs_c | |
parent | 92dd4fee15cb7c33868c7d7213f82136955397b1 (diff) |
bulk package update
Diffstat (limited to 'package/davfs2/patches/patch-src_mount_davfs_c')
-rw-r--r-- | package/davfs2/patches/patch-src_mount_davfs_c | 62 |
1 files changed, 22 insertions, 40 deletions
diff --git a/package/davfs2/patches/patch-src_mount_davfs_c b/package/davfs2/patches/patch-src_mount_davfs_c index ba0c030f2..516604ffc 100644 --- a/package/davfs2/patches/patch-src_mount_davfs_c +++ b/package/davfs2/patches/patch-src_mount_davfs_c @@ -1,40 +1,22 @@ -$Id$ ---- davfs2-1.3.3.orig/src/mount_davfs.c 2008-06-30 20:29:42.000000000 +0200 -+++ davfs2-1.3.3/src/mount_davfs.c 2008-12-08 00:20:01.000000000 +0100 -@@ -23,12 +23,10 @@ - - #include "config.h" - --#include <argz.h> - #include <ctype.h> - #include <errno.h> - #include <error.h> +--- davfs2-1.4.6.orig/src/mount_davfs.c 2010-01-21 19:50:15.000000000 +0100 ++++ davfs2-1.4.6/src/mount_davfs.c 2010-05-29 21:10:23.041613426 +0200 +@@ -29,7 +29,6 @@ + #ifdef HAVE_FCNTL_H #include <fcntl.h> + #endif -#include <fstab.h> #include <getopt.h> #include <grp.h> - #include <limits.h> -@@ -602,15 +600,18 @@ static char *check_double_mounts(dav_arg - free to choose them. They should be configured in davfs2.conf anyway. */ - static void check_fstab(const dav_args *args) { - + #ifdef HAVE_LIBINTL_H +@@ -677,6 +676,7 @@ check_double_mounts(dav_args *args) + static void + check_fstab(const dav_args *args) + { +#if 0 dav_args *n_args = new_args(); n_args->mopts = DAV_USER_MOPTS; - setfsent(); - struct fstab *ft = getfsfile(mpoint); - if (ft == NULL) -+#endif - error(EXIT_FAILURE, 0, _("no entry for %s found in %s"), url, -- _PATH_FSTAB); -+ "/etc/fstab"); - -+#if 0 - if (strcmp(url, ft->fs_spec) != 0) { - char *fstab_url = decode_octal(ft->fs_spec); - if (strcmp(url, fstab_url) != 0) -@@ -642,6 +643,7 @@ static void check_fstab(const dav_args * +@@ -733,6 +733,7 @@ check_fstab(const dav_args *args) endfsent(); delete_args(n_args); @@ -42,28 +24,28 @@ $Id$ } -@@ -661,7 +663,7 @@ static void check_mountpoint(dav_args *a +@@ -754,7 +755,7 @@ check_mountpoint(dav_args *args) struct passwd *pw; if (*mpoint != '/') { - char *mp = canonicalize_file_name(mpoint); + char *mp = realpath(mpoint, NULL); - if (mp == NULL) + if (!mp) error(EXIT_FAILURE, 0, _("can't evaluate path of mount point %s"), mpoint); -@@ -1754,6 +1756,7 @@ static dav_args *new_args(void) { - - static void log_dbg_config(char *argv[], dav_args *args) { - +@@ -1824,6 +1825,7 @@ new_args(void) + static void + log_dbg_cmdline(char *argv[]) + { + /* size_t len; - char * cmdline; + char *cmdline; if (argz_create(argv, &cmdline, &len) == 0) { -@@ -1761,6 +1764,7 @@ static void log_dbg_config(char *argv[], +@@ -1831,6 +1833,7 @@ log_dbg_cmdline(char *argv[]) syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), cmdline); free(cmdline); } + */ - - syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), - "Configuration:"); + } + + |