]> err.no Git - util-linux/commit
setarch: provide backwards compatibility
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 15 Apr 2008 23:26:56 +0000 (03:26 +0400)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Apr 2008 09:20:09 +0000 (11:20 +0200)
commit3c52010c68c3d554979cca22a529aed15794eb80
treea65d090353c6d06dacaa4e933340ae115a9a9f06
parent42bcaa2ca12865ec09244a66314dafcf05024e4e
setarch: provide backwards compatibility

The getopt_long(3) use introduced by commit
8df90dec2bfd8c876ddd4cea010f40550d4e24aa
broke backwards compatibility.

Old behavior:
$ i386 uname -m
i686

New behavior:
$ i386 uname -m
i386: invalid option -- m
Linux

Traditional method to fix it is to disable program arguments reordering
by prefixing getopt_long's optstring with '+' character.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setarch.c