[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#203782: dpkg-statoverride alwats prints "stripping trailing /"

Package: dpkg
Version: 1.10.10
Severity: normal

dpkg-statoverride contains three copies of this:

s,/*$,, && print STDERR "stripping trailing /\n";

Problem is, /* matches "", and this will in fact happily substitute
nothing for nothing, return 1, and print the message, when no slashes
are involved at all:

joey@dragon:~>perl -le '$_="foo"; print s,/*$,,'
joey@dragon:~>dpkg-statoverride --list foo
stripping trailing /

So every maintainer script that uses dpkg-statoverride prints out these
useless messages.

Fix is to make sure your pattern actually matches something:

s,/+$,, && print STDERR "stripping trailing /\n";

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dragon 2.4.21 #1 Fri Jun 13 21:33:56 EDT 2003 i686

Versions of packages dpkg depends on:
ii  dselect                       1.10.10    a user tool to manage Debian packa
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an

-- no debconf information

see shy jo

Attachment: pgpVuMJkHCShE.pgp
Description: PGP signature

Reply to: