🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5500

Bug#680293: #680293: update-rc.d: Fix behaviour with --force to match manapage

#5500
From: Mark Hindley
Date: Sun, 22 Nov 2026 12:20
36 lines
2762 bytes
Hi,

I think the real fix for the underlying behaviour so that it correctly matches
what is described in the manpage is:

From 7436e4ff6d1b3c340906478e107efc0556b9c0c5 Mon Sep 17 00:00:00 2001
From: Mark Hindley <mark@hindley.org.uk>
Date: Sun, 22 Nov 2026 11:05:09 +0000
Subject: [PATCH] update-rc.d: fix passing on of force option.

Even when @_ is (0),

  $force = (@_);

is in scalar context and therefore $force is always 1.

Closes: #680293
---
 script/update-rc.d | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/update-rc.d b/script/update-rc.d
index 59fa374..9f2b6c7 100755
--- a/script/update-rc.d
+++ b/script/update-rc.d
@@ -195,7 +195,7 @@ sub make_systemd_links {
 }
 
 sub create_sequence {
-    my $force = (@_);
+    my ($force) = @_;
     my $insserv = "$dpkg_root/usr/lib/insserv/insserv";
     # Fallback for older insserv package versions [2014-04-16]
     $insserv = "/sbin/insserv" if ( -x "$dpkg_root/sbin/insserv");
-- 
2.53.0
Technical Details
Message-ID: <O2eI1-dt3w-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <jjEmZ-5Y4-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Mark Hindley <mark@hindley.org.uk>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#680293: #680293: update-rc.d: Fix behaviour with --force to match manapage
Date: Sun, 22 Nov 2026 13:20:01 +0100
Message-ID: <O2eI1-dt3w-11@gated-at.bofh.it>
References: <jjEmZ-5Y4-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 22 12:19:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Mark Hindley <mark@hindley.org.uk>, 680293@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-systemd-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: followup 680293
X-Debian-Pr-Package: init-system-helpers
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: init-system-helpers
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004102
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 36
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Andrew Bower <andrew@bower.uk>, Paul Menzel <pm.debian@googlemail.com>, josch@debian.org, debian-init-diversity@chiark.greenend.org.uk
X-Original-Date: Sun, 22 Nov 2026 12:17:35 +0000
X-Original-Message-ID: <awLdX72gAwH63YQK@hindley.org.uk>
X-Original-References: <1341433030.30342.9.camel@mattotaupa>