Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 04:30:05 -0800 (PST)
From:      Mike Makonnen <mike_makonnen@yahoo.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/34819: bzip2 cannot handle filenames containing * or ?
Message-ID:  <200202111230.g1BCU5n02898@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/34819; it has been noted by GNATS.

From: Mike Makonnen <mike_makonnen@yahoo.com>
To: Nicolas Rachinsky <list@rachinsky.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/34819: bzip2 cannot handle filenames containing * or ?
Date: Mon, 11 Feb 2002 04:26:15 -0800

 It appears from the source code that it specifically checks for the
 occurrence of '*' and '?' in the file name and fails if either one does
 occur:
 
 	static 
 	Bool containsDubiousChars ( Char* name )
 	{
    		Bool cdc = False;
    		for (; *name != '\0'; name++)   
       		if (*name == '?' || *name == '*') cdc = True;
    		return cdc;
 	}
 
 and ...
 
    if ( srcMode != SM_I2O && containsDubiousChars ( inName ) ) {
       if (noisy)
       fprintf ( stderr, "%s: There are no files matching `%s'.\n",
                 progName, inName );
       setExit(1);
       return;
    }
 
 The error string should probably be more helpful.
 
 Having said that, bzip2 is contributed software so you should complain
 to its creator: Julian Seward http://sources.redhat.com/bzip2/
 
 cheers,
 mike makonnen

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202111230.g1BCU5n02898>