tech-toolchain archive

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

Re: awk infinite loop from maketars/getdirs



On Wed, Feb 08, 2012 at 03:31:09PM +0100, Nicolas Joly wrote:
> njoly@lanfeust [distrib/sets]> grep '\/\/' '/tmp/maketars.11476a/flist.comp'
> ./usr/libdata/debug/usr/sbin//makemandb.debug

Oops, sorry.

> The attached patch fix this issue by making dirname() gsub call kill
> all slashes before the name, not only the last one.

Please just check for the case and bail out with error (and a proper
diagnostics).

Joerg


Home | Main Index | Thread Index | Old Index