getopt() argument permuting considered risky

Roland McGrath roland@redhat.com
Wed Aug 4 19:38:00 GMT 2004


> Maybe.  My point is that glibc's getopt() behaviour introduces a 
> behaviour not present on other Unix systems.

Those are called "improvements".  We added them because we like them.

> I don't have any broken scripts.  The whole point of this note was 
> to raise what looks like a security risk when porting scripts and 
> programs.  

Put POSIXLY_CORRECT in your environment if you want to run portable scripts.
Then the system conforms to POSIX.  That's what the standard is for.
 



More information about the Libc-alpha mailing list