Date: Mon, 16 Jan 2012 22:17:10 +0200 (EET) From: Jaakko Heinonen <jh@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/164218: [patch] sysutils/fusefs-kmod: update mount_fusefs for r230226 Message-ID: <201201162017.q0GKHAbk027964@ws64.jh.dy.fi> Resent-Message-ID: <201201162040.q0GKe8nc086718@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201162017.q0GKHAbk027964>