#771185 dpkg: Please handle non-canonical file names in dpkg --search

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Christoph Biedl
Date:
2014-11-27 14:12:05 UTC
Severity:
minor
#771185#5
Date:
2014-11-27 12:21:08 UTC
From:
To:
Dear Maintainer,

the short version:

$ dpkg --search /usr//bin/dpkg
dpkg-query: no path found matching pattern /usr//bin/dpkg
$ dpkg --search /usr/bin/dpkg
dpkg: /usr/bin/dpkg

Full story: Either mandated by POSIX or at least common practise for a
very long time: It doesn't matter if there's just one slash in a
filename specification, or more than that. As seen above however,
dpkg --search does not follow that concept, which is a bit surprising.
So, for robustness, please implement a relaxed lookup.

    Christoph

#771185#10
Date:
2014-11-27 14:05:00 UTC
From:
To:
Control: forcemerge -1 122255

Yeah, will be doing that for 1.18.x.

Thanks,
Guillem