Debian Bug report logs - #408302
sysv-rc-conf too greedy when unlinking files

version graph

Package: sysv-rc-conf; Maintainer for sysv-rc-conf is Debian QA Group <packages@qa.debian.org>; Source for sysv-rc-conf is src:sysv-rc-conf (PTS, buildd, popcon).

Reported by: "Michael Mirold" <M.Mirold@inoplex.de>

Date: Wed, 24 Jan 2007 19:03:03 UTC

Severity: normal

Tags: patch

Found in version sysv-rc-conf/0.99-5

Fixed in version sysv-rc-conf/0.99-6

Done: Francesco Pedrini <francesco.pedrini@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Francesco Pedrini <francesco.pedrini@gmail.com>:
Bug#408302; Package sysv-rc-conf. (full text, mbox, link).


Acknowledgement sent to "Michael Mirold" <M.Mirold@inoplex.de>:
New Bug report received and forwarded. Copy sent to Francesco Pedrini <francesco.pedrini@gmail.com>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Michael Mirold" <M.Mirold@inoplex.de>
To: <submit@bugs.debian.org>
Subject: sysv-rc-conf too greedy when unlinking files
Date: Wed, 24 Jan 2007 20:23:22 +0100
[Message part 1 (text/plain, inline)]
Package: sysv-rc-conf
Version: 0.99-5
Severity: normal

Hi!

When sysv-rc-conf removes symlinks, it doesn't respect string boundaries. 
For example, when trying to remove "ifupdown" from runlevel S, sysv-rc-conf
also removes "ifupdown-clean" from that runlevel.

The following patch might solve the problem:

-- /usr/sbin/sysv-rc-conf      2006-09-06 17:18:25.000000000 +0200
+++ sysv-rc-conf        2007-01-24 18:59:20.000000000 +0100
@@ -133,7 +133,7 @@

     opendir (RL, "$etc_rc$rl.d") or die "$0: opendir $etc_rc$rl.d : $!";

-    foreach (grep { /[SK]\d\d$sn/i } readdir(RL)) {
+    foreach (grep { /[SK]\d\d$sn$/i } readdir(RL)) {
        verbose("rm $etc_rc$rl.d/$_");
        unlink "$etc_rc$rl.d/$_"
            or die "Can't unlink $etc_rc$rl.d/$_ : $!";


--

Michael Mirold
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Francesco Pedrini <francesco.pedrini@gmail.com>:
Bug#408302; Package sysv-rc-conf. (full text, mbox, link).


Acknowledgement sent to Francesco Pedrini <f_pedrini@tiscali.it>:
Extra info received and forwarded to list. Copy sent to Francesco Pedrini <francesco.pedrini@gmail.com>. (full text, mbox, link).


Message #10 received at 408302@bugs.debian.org (full text, mbox, reply):

From: Francesco Pedrini <f_pedrini@tiscali.it>
To: "Michael Mirold" <M.Mirold@inoplex.de>, 408302@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#408302: sysv-rc-conf too greedy when unlinking files
Date: Wed, 24 Jan 2007 23:52:51 +0100
tags 408302 + patch pending

On Wednesday 24 January 2007 20:23, Michael Mirold wrote:
> Hi!
>
> When sysv-rc-conf removes symlinks, it doesn't respect string boundaries.
> For example, when trying to remove "ifupdown" from runlevel S, sysv-rc-conf
> also removes "ifupdown-clean" from that runlevel.
>
> The following patch might solve the problem:
[snip]

Thank you, i'm testing the patch and it seems to work fine, ASAP (== as soon 
as i find a sponsor) with the fix.

For now you can find a version of the package at 
http://www.mindolo.net/debian/


Regards
Francesco
-- 
:wq



Tags added: patch, pending Request was from Francesco Pedrini <f_pedrini@tiscali.it> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Francesco Pedrini <francesco.pedrini@gmail.com>:
You have taken responsibility. (full text, mbox, link).


Notification sent to "Michael Mirold" <M.Mirold@inoplex.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #17 received at 408302-close@bugs.debian.org (full text, mbox, reply):

From: Francesco Pedrini <francesco.pedrini@gmail.com>
To: 408302-close@bugs.debian.org
Subject: Bug#408302: fixed in sysv-rc-conf 0.99-6
Date: Fri, 26 Jan 2007 15:17:02 +0000
Source: sysv-rc-conf
Source-Version: 0.99-6

We believe that the bug you reported is fixed in the latest version of
sysv-rc-conf, which is due to be installed in the Debian FTP archive:

sysv-rc-conf_0.99-6.diff.gz
  to pool/main/s/sysv-rc-conf/sysv-rc-conf_0.99-6.diff.gz
sysv-rc-conf_0.99-6.dsc
  to pool/main/s/sysv-rc-conf/sysv-rc-conf_0.99-6.dsc
sysv-rc-conf_0.99-6_all.deb
  to pool/main/s/sysv-rc-conf/sysv-rc-conf_0.99-6_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 408302@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Francesco Pedrini <francesco.pedrini@gmail.com> (supplier of updated sysv-rc-conf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 24 Jan 2007 23:19:08 +0100
Source: sysv-rc-conf
Binary: sysv-rc-conf
Architecture: source all
Version: 0.99-6
Distribution: unstable
Urgency: low
Maintainer: Francesco Pedrini <francesco.pedrini@gmail.com>
Changed-By: Francesco Pedrini <francesco.pedrini@gmail.com>
Description: 
 sysv-rc-conf - SysV init runlevel configuration tool for the terminal
Closes: 408302
Changes: 
 sysv-rc-conf (0.99-6) unstable; urgency=low
 .
   * Added patch that fix greedy names handling (thanks to Michael Mirold)
     Closes: #408302
Files: 
 d1a72eb3da8eb5e29fdf704956747ab6 609 admin optional sysv-rc-conf_0.99-6.dsc
 0de68befe2509ad042dc1b329178592a 8513 admin optional sysv-rc-conf_0.99-6.diff.gz
 513cb467f5c6288ec21e502e2aef04bd 24022 admin optional sysv-rc-conf_0.99-6_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFuhf0aGRzDfCV5eQRAlCBAJ42cmOTiyqTELm1qQ8DW/8EMt4zWgCggGb4
ws1yCHFPq/HJsBYEo6+yO9s=
=Xe1U
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jun 2007 09:14:45 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 12:29:31 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.