ports/164218: [patch] sysutils/fusefs-kmod: update mount_fusefs for r230226
Jaakko Heinonen
jh at FreeBSD.org
Mon Jan 16 20:40:08 UTC 2012
>Number: 164218
>Category: ports
>Synopsis: [patch] sysutils/fusefs-kmod: update mount_fusefs for r230226
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 16 20:40:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jaakko Heinonen
>Release: FreeBSD 10.0-CURRENT
>Organization:
>Environment:
System: FreeBSD 10.0-CURRENT
>Description:
The mount(8) checkpath() function was changed in r230226. mount_fusefs
uses this function and needs to be updated.
>How-To-Repeat:
>Fix:
--- fusefs-kmod-checkpath.diff begins here ---
diff -urN fusefs-kmod.orig/files/patch-mount_fusefs__mount_fusefs.c fusefs-kmod/files/patch-mount_fusefs__mount_fusefs.c
--- fusefs-kmod.orig/files/patch-mount_fusefs__mount_fusefs.c 1970-01-01 02:00:00.000000000 +0200
+++ fusefs-kmod/files/patch-mount_fusefs__mount_fusefs.c 2012-01-08 14:54:17.000000000 +0200
@@ -0,0 +1,23 @@
+--- mount_fusefs/mount_fusefs.c 2008-02-05 07:25:57.000000000 +0200
++++ mount_fusefs/mount_fusefs.c 2012-01-07 21:07:35.000000000 +0200
+@@ -44,6 +44,7 @@
+ #include <getopt.h>
+ #include <libgen.h>
+ #include <limits.h>
++#include <osreldate.h>
+ #include <paths.h>
+
+ #include "fuse4bsd.h"
+@@ -312,7 +313,12 @@
+ * Resolve the mountpoint with realpath(3) and remove unnecessary
+ * slashes from the devicename if there are any.
+ */
++#if __FreeBSD_version >= 1000005
++ if (checkpath(dir, mntpath) != 0)
++ err(1, "%s", mntpath);
++#else
+ (void)checkpath(dir, mntpath);
++#endif
+ (void)rmslashes(dev, dev);
+
+ if (strcmp(dev, "auto") == 0)
--- fusefs-kmod-checkpath.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list