🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Mark Hindley Sun, 22 Nov 2026 12:20
Bug#680293: #680293: update-rc.d: Fix behaviour with --force to match manapage
#5500
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads