From owner-freebsd-bugs Mon Feb 11 4:30:10 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 78BC637B400 for ; Mon, 11 Feb 2002 04:30:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1BCU5n02898; Mon, 11 Feb 2002 04:30:05 -0800 (PST) (envelope-from gnats) Date: Mon, 11 Feb 2002 04:30:05 -0800 (PST) Message-Id: <200202111230.g1BCU5n02898@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Makonnen Subject: Re: bin/34819: bzip2 cannot handle filenames containing * or ? Reply-To: Mike Makonnen Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/34819; it has been noted by GNATS. From: Mike Makonnen To: Nicolas Rachinsky 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