From nobody Tue Feb 06 00:38:23 2024 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 4TTPVm08XDz59NQV; Tue, 6 Feb 2024 00:38:24 +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 4TTPVl6h1Gz4Dr0; Tue, 6 Feb 2024 00:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707179903; 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=oE3W3kp9z+avEvL9qGoZ5aQ4956/uvp/mI+K18piJ9o=; b=TKMXiKyTFEMNAzNbOaiKsBscgRUGc/miatwFX45a6YOhSPo1WgRtJ6lMsxDFDMhy7xUAwr pvuBLMQq8DPgQdioHaz7ewlilumN9IZu+jpBr7pvdjeEVMDVQ/FOPTnbP/kL/Qjl/5aXyE VWoZBkK1NgxWwUISqiRypuN8MoS/R5tthkuTrxxa3w3gsw6g3+gYTXRkFrox8slQ93zFSS xH4XSSOa6ypEwH1B+3VDKIpSCpqSe3k1I4JUM1tgVugkVfp6TedOFBAyxZzJv88DgmZiph nmbs9tz9niZtflmDHwlPOhQ6P7qbOOY8q6cwYUafmFh0/4ApzKzV/B2DC/E1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707179903; 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=oE3W3kp9z+avEvL9qGoZ5aQ4956/uvp/mI+K18piJ9o=; b=Vy7/exeojIA80D2xkAD0RVitv8SPeVaoJU/rnzY2eK9MpLyxgqGPtFlW5UNqoc8dKVNZU5 sN2mfx10yQTofI35HZRB36/uIQ6osI/rRcBxWBVO2sFp4y+ff5G6UB72jmvAfpqH7vD+yA 2xe2FEzDPlASGGWUvYPxKe2oKXlCETZGQb/wlZgRo1wWxtu5m//2mHsCzay71URjYo1BEo Xb7k8OouWPUoiG4MJ9twmMGbklK5Egd7TFw2vQwikg0ya5yJthZuWljAAxXJiKrSiOAox+ dNiu2riZEnQD/5cemj3lCwkRn9GxGKKiJdMZcE0dzi7Yawvf5ed27rCK5IwvNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707179903; a=rsa-sha256; cv=none; b=E88bDARgrGt4Ma/F6NqiAxLhZGM1A9FHd9HqsN4rncS37g0yVuaXIwRx1kdxpPfXPWvH1W pRRVhpiukHqtSKGA8XKfr+IiOkmfmMAGOaNRJXOe2QeHGXgUOzXz54wM9viq45BjgGGBoM stUwFuoDbqoiviDGa9sOW7t0ZxZOT/3fIBpChS4iKz7N7imOaoPcVnFG3aNdqyuTGkoGmb w49WHdbO0ZMSOSkIrT4ScTAlqA2+nAQ9lsYIK3RWw5PdnvztlM171Ds5qly7NSAUHwqbSs JOHMUawvqtIbHsl4DFsTvXZa5iW2xK6mZzZqosBLwwP+dUqxbrpDbnxrFaT/GQ== 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 4TTPVl5jMLz129T; Tue, 6 Feb 2024 00:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4160cNhY071226; Tue, 6 Feb 2024 00:38:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4160cNE0071223; Tue, 6 Feb 2024 00:38:23 GMT (envelope-from git) Date: Tue, 6 Feb 2024 00:38:23 GMT Message-Id: <202402060038.4160cNE0071223@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 151495ac8dde - stable/14 - chflags(1): Fix -f option 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 151495ac8ddeec3fed3c55963776699fde8c8c6b Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=151495ac8ddeec3fed3c55963776699fde8c8c6b commit 151495ac8ddeec3fed3c55963776699fde8c8c6b Author: Ricardo Branco AuthorDate: 2024-01-29 22:17:47 +0000 Commit: Konstantin Belousov CommitDate: 2024-02-06 00:37:37 +0000 chflags(1): Fix -f option PR: 276723 (cherry picked from commit fae467c2212ced8e82f5fa385d316445c8874941) --- bin/chflags/chflags.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c index a08ac88ab3cd..5c9a2f7e7f42 100644 --- a/bin/chflags/chflags.c +++ b/bin/chflags/chflags.c @@ -195,9 +195,11 @@ main(int argc, char *argv[]) if (newflags == p->fts_statp->st_flags) continue; if (chflagsat(AT_FDCWD, p->fts_accpath, newflags, - atflag) == -1 && !fflag) { - warn("%s", p->fts_path); - rval = 1; + atflag) == -1) { + if (!fflag) { + warn("%s", p->fts_path); + rval = 1; + } } else if (vflag || siginfo) { (void)printf("%s", p->fts_path); if (vflag > 1 || siginfo)