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:

tabb...@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

Reply via email to