Subject: Re: bug#28859: Segmentation fault with NULL pointer dereference in 'stty'

From: Andreas Schwab <[email-masked]>
Date: Tue, 17 Oct 2017 21:55:59 +0200

On Okt 17 2017, Pádraig Brady <[email-masked]> wrote:

> Updated patch attached. I mistakenly thought getopt would
> permute the argv so NULLs were at the end.  The attached
> caters for NULLs interspersed in the argv[].

This has nothing to do with getopt, the first pass explicitly overwrites
the arguments that were already parsed.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."