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

Bug#814326: Warn if filenames contain wildcard characters (*?)



Package: lintian
Version: 2.5.40.2
Severity: wishlist

Hi,

I think lintian should complain if files in .deb files contain * or ?
characters. These are most likely unexpanded wildcard characters from
debian/*.install files or the like. There might legitimate uses for
these filenames, but these will probably warrant an explicit override.

A current apt-file search yields these (most duplicates removed):

$ apt-file search '*'
chise-db: /usr/lib/xemacs-21.4.15/etc/chise-db/feature/->ancient*sources
chise-db: /usr/lib/xemacs-21.4.15/etc/chise-db/feature/=>ucs*
chise-db: /usr/lib/xemacs-21.4.15/etc/chise-db/feature/name*
clanlib-doc: /usr/share/doc/clanlib-doc/Reference/html/CL_FunctionSlot_v0__(*Callback)().html
clanlib-doc: /usr/share/doc/clanlib-doc/Reference/html/CL_GLFunctions__*).html
clanlib-doc: /usr/share/doc/clanlib-doc/Reference/html/CL_GLFunctions__**params).html
clanlib-doc: /usr/share/doc/clanlib-doc/Reference/html/CL_GLFunctions__**pointer).html
coq-theories: /usr/share/doc/coq-theories/html/index_abbreviation_*.html
cppreference-doc-en-html: /usr/share/cppreference/doc/html/en/cpp/experimental/fs/directory_iterator/operator*.html
hol88-help: /usr/share/hol88-2.02.19940316/help/ENTRIES/*.doc
postgresql-contrib-9.5: /usr/share/doc/postgresql-contrib-*/autoinc.example

$ apt-file search '?'
chise-db: /usr/lib/xemacs-21.4.15/etc/chise-db/feature/cns-radical?
ucblogo: /usr/share/ucblogo/logolib/?rest
ucblogo: /usr/share/ucblogo/logolib/file?
w3-recs: /usr/share/doc/w3-recs/html/www.w3.org/TR/2008/REC-SVGTiny12-20081222/relaxng/index.html?C=D;O=A.html

I haven't checked the contents, but if I had to guess, only cpp's
"operator*" looks like a valid file name, but even in that case that's
unclear.

(I'm submitting this because postgresql-contrib-9.5's example
directory completely escaped my testing, and a lintian warning (or
error) would have catched it.)

Thanks,
Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: PGP signature


Reply to: