From nobody Mon Feb 05 15:03:19 2024 X-Original-To: bugs@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 4TT8lC3jVvz58MLY for ; Mon, 5 Feb 2024 15:03:19 +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 4TT8lC229lz4CMN for ; Mon, 5 Feb 2024 15:03:19 +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=1707145399; 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=yBBUzEkj4q2SWPml4WMm0S2B4W4imii71T6P4QfZAUw=; b=gis6zXexJZyTEP4POuP/gyuzXCUXfe+RIKmdb3uHyFVj+NDwBaph3Vm3QDBzg0s1gBdDYR QmFNNCi+7M9Snl1oF+Ckp0DPbHL8sH8+Heo4Yqw4mp/W1bg2z42gQRO573qankqzKTm2Ri gQRKvwFibueCxxxvBFNAlE+O2XhZDHiHuH77cH94mkXgm6FeYAAIexJNHJZBg2Kv7J9R4u LGX5SNy5ME/zTAd3TNC9uwKxaJ/G90bdziELo/gqdUOJZZLIA+155XEECOaD3owfqvAT1M 2lG7Kc11LW8SfCtP+mUhFtYCiVnA0nnefF2dMAd8GS8cb4VJDWO9CPn0IvbaeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707145399; a=rsa-sha256; cv=none; b=M3urz64jbn6SQZgmw/rlDmWMt7lKxaY5BRfkGSLDxni99f2uhjM7kY7Zh+J9XUL/9ctSio pi2hWSWL61d0kLd1uxZ0NEB4/XjRnULEo54MLKULtB3aYZJc7N9/yhWNuYAMxiFwyDv4Ja S1ldbQN5z4FVdK2ZlSkTMU745PjtFlX79u7Uk4e/+tFDca3Ho5rdRpdnidVLRV4PAIf/ws qO7X1NauGKvNiVu7syL5EFqsFM/ovXdezGzL4guffrB45ygKKXVqfQne8lZUDQ9COTWNPD s1qEQGHHb81gZ8omiKsVf+Q0QnASzcAjrOPetuQxEDvN4byRTPFf7Wh0gVTyTg== 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 4TT8lC14tQzlK2 for ; Mon, 5 Feb 2024 15:03:19 +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 415F3JCt098580 for ; Mon, 5 Feb 2024 15:03:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 415F3J3i098579 for bugs@FreeBSD.org; Mon, 5 Feb 2024 15:03:19 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: bugs@FreeBSD.org Subject: [Bug 276839] pkg upgrade with DEFAULT_ALWAYS_YES installs updates on SIGINT Date: Mon, 05 Feb 2024 15:03:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sthalik@tehran.lain.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276839 Bug ID: 276839 Summary: pkg upgrade with DEFAULT_ALWAYS_YES installs updates on SIGINT Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: sthalik@tehran.lain.pl When using pkg(8) with the 'upgrade' command, the program asks for confirma= tion on stdin. The configuration option "DEFAULT_ALWAYS_YES" changes the [n/Y] p= ort into [Y/n] which is generally in line with other package management software such as ones from Linux distributions. However, pressing ^C on the 'pkg upgrade' [Y/n] confirmation prompt causes = it to actually perform the upgrade. This violates POLA, and does so potentially causing downtime in case where there was something wrong with the upgrade to perform. Please consider chan= ging SIGINT (and possibly SIGHUP in case where isatty(2) returns true) to act as= if 'n' was chosen even for DEFAULT_ALWAYS_YES. --=20 You are receiving this mail because: You are the assignee for the bug.=