Page MenuHomeFreeBSD

bintrans: disable argument permutation for qp and base64
AcceptedPublic

Authored by kevans on Thu, Jan 16, 2:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 29, 1:58 AM
Unknown Object (File)
Tue, Jan 28, 2:53 PM
Unknown Object (File)
Wed, Jan 22, 1:44 AM
Unknown Object (File)
Sat, Jan 18, 8:50 AM
Unknown Object (File)
Fri, Jan 17, 1:08 PM
Unknown Object (File)
Fri, Jan 17, 12:07 PM
Subscribers

Details

Reviewers
pstef
bapt
emaste
Summary

Err on the side of caution and revert to the BSD-style getopt(3)
behavior for argument processing, as it's harder to go back and it's
not clear that this was strictly intentional.

This is the difference between base64 /COPYRIGHT -w 80 and
base64 -w 80 /COPYRIGHT.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61763
Build 58647: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Thu, Jan 16, 2:50 PM

This looks reasonable to me but could it be that whatever base64 exists on typical Linux distros allows "incorrect" argument order?

This looks reasonable to me but could it be that whatever base64 exists on typical Linux distros allows "incorrect" argument order?

Hmm... I was basing it off of the port (which doesn't), but the coreutils base64 is indeed different from that (and there's also a perl script I've seen used in places) and does do the GNU-style permutation.

If there are at least some other implementations in common use that don't support GNU-style my preference is for your change to go in.