From nobody Wed Jan 05 22:06:25 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C678C1936653; Wed, 5 Jan 2022 22:06:25 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JTk8d43fpz3MPH; Wed, 5 Jan 2022 22:06:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6716C14587; Wed, 5 Jan 2022 22:06:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 205M6PZi072148; Wed, 5 Jan 2022 22:06:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 205M6P3X072147; Wed, 5 Jan 2022 22:06:25 GMT (envelope-from git) Date: Wed, 5 Jan 2022 22:06:25 GMT Message-Id: <202201052206.205M6P3X072147@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: ac413189f535 - main - vfslist.c: initialize skipvfs variable List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac413189f53524e489c900b3cfaa80a1552875ca Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641420385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TRVZ6S3A+ItuRRxGcJ5BoBznW/agRektmn32FIACFJw=; b=pWDhEh+aC9FQ4Rhosev5APnKyDZ/XUagTG63zb0keSb8k6aobUaKCQRhu0s6mdVtqp1dOr LYjjRzvIib13DliHuEqe1asa/nks1NV41edzm8mH6XvKMW/w6730ORAS2JMIpEBFl910jb SJglQI5HJSov7imEG66bmAHxVFn98+UiF0NJCJlsBHhVVOcZe3o79Rm5IqS82OuwEFSViP yXLilLAq9JVgfYzi+n1AfMWPrG51bZ4Uq2/ZM7I5+e0TFTSVWdResg6TSKSOXBQmovb+Xt zFE6xPj1hA1FPhZuzXPyPcrSwj5mAs9im/msDpgcDXq257rJjSJ41MeprIZ2QQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641420385; a=rsa-sha256; cv=none; b=jJraNI4nTAQOThUN65QH/VO+ZSYWE3A+UEJfP9b9Q+jVlkEaTCh0KoWpk+4Dl6ldst1+K0 teO9VbNwAxKvAI69JISFxwnpGwU9kTeaCXAqdvIFpmuLqV57F/sc9RN3aesVypdJRadR/r agHLe4+F7MfTxIQSZYHMFgvNBWHTxVcXnbbehuhMav6QukyRDycHd5XKW7763zuvcJs90G NMl32h1GC7g3/iAdj5iN1N8UhHIek9/JcRO424bKSxEm/lkuf+6a0qdygC+JNbi6N0XF5I Rma3ky27UQX+kIjkwJJ1NI/2yYtpVew8GCC9RAw2wuH6ggf0MwfKIoNkvkLhqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=ac413189f53524e489c900b3cfaa80a1552875ca commit ac413189f53524e489c900b3cfaa80a1552875ca Author: Stefan Eßer AuthorDate: 2022-01-05 22:00:36 +0000 Commit: Stefan Eßer CommitDate: 2022-01-05 22:00:36 +0000 vfslist.c: initialize skipvfs variable The function makevfslist is only called once in mount.c, but should be save to be called more than once with different parameters. The bin/df command links against this file, and will need this possibility to allow -l and -t to be used together. MFC after: 3 days --- sbin/mount/vfslist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/mount/vfslist.c b/sbin/mount/vfslist.c index d6a42e61d8b4..e45aaec5fc09 100644 --- a/sbin/mount/vfslist.c +++ b/sbin/mount/vfslist.c @@ -68,6 +68,7 @@ makevfslist(char *fslist) if (fslist == NULL) return (NULL); + skipvfs = 0; if (fslist[0] == 'n' && fslist[1] == 'o') { fslist += 2; skipvfs = 1;