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

Bug#86923: Should be more finicky about filenames in /etc/apt/apt.conf.d



Package: apt
Version: 0.5.0
Severity: normal

Currently, ReadConfigDir seems to only exclude files with certain extensions
(.disabled, .dpkg-old, etc.).  It misses, in particular, vim .swp files (which
also start with a dot, and otherwise don't look like real config files).  This
causes bad things to happed if apt is run while a vim session is open on one of
the files in apt.conf.d.

Note that adding .swp to the list of forbidden extensions doesn't fix the
problem, as multiple sessions seem to get filenames ending in .swo, .swn, etc.
You could, however, fix things by ignoring all filenames starting with a dot.
It might be more sensible, however, to invert the check, and only pay attention
to files with a certain extension (say, .conf).

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mizar 2.4.0 #1 Sat Jan 6 09:34:06 EST 2001 i686

Versions of packages apt depends on:
ii  libc6                        2.2.2-1     GNU C Library: Shared libraries an
ii  libstdc++2.10                1:2.95.2-14 The GNU stdc++ library            

-- 
 - mdz



Reply to: