From owner-freebsd-ports-bugs@freebsd.org Fri Apr 17 21:56:58 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E0AD52AD2BB for ; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 493qgZ5bm2z3M7d for ; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C023B2AD2BA; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BFEBE2AD2B9 for ; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 493qgZ4Frrz3M7c for ; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 89348158B for ; Fri, 17 Apr 2020 21:56:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 03HLuw0g024272 for ; Fri, 17 Apr 2020 21:56:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 03HLuwMl024271 for ports-bugs@FreeBSD.org; Fri, 17 Apr 2020 21:56:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 245704] sysutils/fusefs-smbnetfs script to mount using /etc/fstab Date: Fri, 17 Apr 2020 21:56:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mi@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback- X-Bugzilla-Changed-Fields: cc flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 21:56:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245704 Mikhail Teterin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mi@FreeBSD.org Flags|maintainer-feedback?(mi@ALD |maintainer-feedback- |AN.algebra.com) | --- Comment #1 from Mikhail Teterin --- The current smbnetfs itself can be used in fstab with the following trick: -oallow_other /smb fusefs=20 rw,allow_other,failok,uid=3D105,late,direct_io,mountprog=3D/usr/local/bin/s= mbnetfs That is, instead of "smbnetfs", the first column can contain simply one of = the command-line options... Your approach makes the fstab-entry look better, but is it worth the troubl= e of implementing at all? And, if it is, the options-parsing code inside smbnetfs itself should, probably, be patched instead. As for your particular implementation, it would seem that $OPTS ends up containing all of the options in one argument -- instead of there being multiple arguments... Also, the last line should begin with exec. I'd do something like this (not tested): SMBNETFS=3D%%PREFIX%%/bin/smbnetfs if [ $# -gt 1 -a -n "${1##-*}" ] then shift # Skip the non-option argument, if there are more than one fi exec $SBNETFS "$@" --=20 You are receiving this mail because: You are the assignee for the bug.=