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

Re: Bug#240887: Package building problem.



clone 240887 -1
retitle -1 fnmatch breaks on [\]]
submitter -1 herbert@gondor.apana.org.au
reassign -1 libc6
tags 240887 pending
quit

On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote:
> 
> This is how dash calls it in _some_ subdirectories:
> 
> configuring in tetex
> running /bin/sh ./configure  --prefix=/usr --enable-ipc --without-dialog\
>   --without-texinfo --with-system-ncurses --with-x --with-system-zlib \
>   --with-system-pnglib --with-system-tifflib --with-system-wwwlib \
>   --with-system-t1lib --disable-multiplatform --enable-shared \
>   --mandir=/usr/share/man --infodir=${prefix}/share/info \
>   --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
> 
> That is, dash replaced the first occurence of ${prefix} by the variable
> expansion. This shouldn't happen, because it is enclosed in single
> quotes. 

This is caused by dash's use of fnmatch(3) which appears to break
on patterns containing [\]...].

Here is a sample program to demonstrate it.

#include <stdio.h>
#include <fnmatch.h>

int main(int argc, char **argv)
{
	printf("%d\n", fnmatch("[\\]a]", "a", 0));
	return 0;
}

I will disable fnmatch(3) in dash for now.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: