From nobody Thu Jul 06 15:40:28 2023 X-Original-To: rc@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 4Qxghr1zSmz4lXtN for ; Thu, 6 Jul 2023 15:40:28 +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) 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 4Qxghr00THz3DyS for ; Thu, 6 Jul 2023 15:40:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688658028; 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: in-reply-to:in-reply-to:references:references; bh=D0AyM6pJbmKOAAIi5YXHo9lZrzJUjST5+QjY5d0xcdU=; b=pSAIh9q3Oq+WX6m1U6Q5OEpOMJyGmc/lG0dYqDiPjHRQodrO4ysr8kxbRpJ1py3phybLE0 1S3Z3WuvGsDFE/bqT4c3IzKQ6P2IaD5vJj0iThVYa+VLQ7JZDY3GUOm7oGSSZIoCep+6PI qYwL2vz2SHkNItCsbPticGx6bwrREOLMjD4P48K8Z+crZq3HVEduBvt7DDyIHqAoJti99i SL8mYqllT7vkLin37Iu6BzBeiXud/muCqx3tK7yNP791DrTSxnTAS/YKi9eDMt9W8OfUSU F0TzO2ZrR7QTyd45lrALojV4sUhlptvZk7tHx88odA4swLcy/fejCovG/1C8Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688658028; a=rsa-sha256; cv=none; b=mw3W01WGUOIVWu4ZCTZ1cwpfvMJia8ZNiO0arvx/e32+YLofG5Oiv9hHhj2ioa3lS6b3B1 yi6u7jJuTnpz4buYYZB4sf1MIKMOXFhEGohf0/GZy5oHlgRShH563fzdNgVcPy8rJ/CjGe k04SsYyB+Ws6A3vITMmo10KNvKUifadC2I0/D3icO/3YI07rapnAogezwf/qVEc+L17Edf iOMnb/YN9244GS7pW1fU91HzNyB6si1ozLO/qUteU98ZKDbqswOLQOny2t3aiGf/0okXIP Ji9ZvZ5uckbzPmRKIUp0BtvFqYDWLvhiwIhkk+F33PPKdvAnqAluWNxZhXqu1g== 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) 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 4Qxghq6CHMz12MK for ; Thu, 6 Jul 2023 15:40:27 +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 366FeRoS005436 for ; Thu, 6 Jul 2023 15:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 366FeRwP005435 for rc@FreeBSD.org; Thu, 6 Jul 2023 15:40:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: rc@FreeBSD.org Subject: [Bug 240875] usr.sbin/sysrc: If the file to be modified does not exist, an error message is displayed Date: Thu, 06 Jul 2023 15:40:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240875 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D98358de5754cc85b50309323ff72a6619= 3502107 commit 98358de5754cc85b50309323ff72a66193502107 Author: Devin Teske AuthorDate: 2019-12-02 05:24:16 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-07-06 15:39:23 +0000 Fix spurious error from sysrc When using sysrc to modify a file, the file should be created silently. However, with the introduction of SVN r335280, an error of "No such file or directory" would appear despite everything else working as-expected. The nature of this spurious error is that SVN r335280 did not check if the file exists first, before trying to fixup the line-endings in the file just prior to modification. PR: bin/240875 Reported by: Jose Luis Duran MFC after: 3 days (cherry picked from commit e19a2226fe3bbeeb6e922987475300868374d09a) usr.sbin/bsdconfig/share/sysrc.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=