Subject: CVS commit: src/bin/pax
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 01/05/2004 17:27:46
Module Name:	src
Committed By:	jmmv
Date:		Mon Jan  5 17:27:46 UTC 2004

Modified Files:
	src/bin/pax: options.c

Log Message:
Rewrite the loop in printflg(): if passing -Z to pax with syntax errors
(like executing "pax -Z" by itself), this caused a shr of 32 bits, which is
undefined behavior (C99) if the variable is 32 bits wide, too.  Also solves
a problem where the flgch array could be indexed out of bounds.

Thanks to uwe@ and lha@ for their suggestions... I just found the bug :p


To generate a diff of this commit:
cvs rdiff -r1.69 -r1.70 src/bin/pax/options.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.