[Buildd-tools-devel] Bug#513307: schroot: Should ignore ~ files in /etc/schroot/chroot.d

Tim Abbott tabbott at MIT.EDU
Wed Jan 28 02:01:01 UTC 2009


package: schroot
version: 1.2.1
severity: normal

Hello,

If one is editing files in /etc/schroot/chroot.d using editors that leave 
backup files, it ends up breaking things:

tabbott at ksplice:~$ schroot -c sarge-2-6-8-i386
E: /etc/schroot/chroot.d/tabbott~: line 1 [tabbott]: A chroot or alias ‘tabbott’ already exists with this name
I: Duplicate names are not allowed

The right thing to do is what run-parts and a number of other tools with 
.d directories do, which is ignore files whose names contain weird 
characters such as #, ~, etc.  I'm aware of other projects copying logic 
from run-parts, so that might be a good place to look for reasonably 
well-tested logic for this purpose.

 	-Tim Abbott


More information about the Buildd-tools-devel mailing list