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

Roger Leigh rleigh at codelibre.net
Wed Jan 28 11:58:50 UTC 2009


On Tue, Jan 27, 2009 at 09:01:01PM -0500, Tim Abbott wrote:

> If one is editing files in /etc/schroot/chroot.d using editors that leave 
> backup files, it ends up breaking things:
>
> 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.

Agreed.  I'll use the same (or a very similar) regex to detect backup
names and skip those.  Thanks for letting me know about it!


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.





More information about the Buildd-tools-devel mailing list