Signed-off-by: Benno Schulenberg <bensberg@xxxxxxxxxxxxx> --- sys-utils/setarch.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index a09625c..a60d2b0 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -44,7 +44,8 @@ /* Options without equivalent short options */ enum { OPT_4GB = CHAR_MAX + 1, - OPT_UNAME26 + OPT_UNAME26, + OPT_LIST }; #define turn_on(_flag, _opts) \ @@ -277,6 +278,7 @@ int main(int argc, char *argv[]) {"3gb", no_argument, NULL, '3'}, {"4gb", no_argument, NULL, OPT_4GB}, {"uname-2.6", no_argument, NULL, OPT_UNAME26}, + {"list", no_argument, NULL, OPT_LIST}, {NULL, 0, NULL, 0} }; @@ -360,6 +362,9 @@ int main(int argc, char *argv[]) case OPT_UNAME26: turn_on(UNAME26, options); break; + case OPT_LIST: + set_arch(argv[0], 0L, 1); + return EXIT_SUCCESS; default: show_usage(NULL); } -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html