]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lslogins: fix short options
authorSami Kerola <kerolasa@iki.fi>
Sat, 13 Dec 2014 16:58:37 +0000 (16:58 +0000)
committerSami Kerola <kerolasa@iki.fi>
Fri, 19 Dec 2014 09:11:02 +0000 (09:11 +0000)
Usage is promising -e is an option alias of --export, so make it work.
And get rid of -x that was accepted, but not in use.

Long only enum member OPT_VER was probably a development time idea, that
never got to be used.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/lslogins.c

index 7fe6599d61fb01a6765a13002bbc40b71b1b543d..cacf83c1d791a4cf58333f08f205782da62c7b95 100644 (file)
@@ -1245,8 +1245,7 @@ int main(int argc, char *argv[])
 
        /* long only options. */
        enum {
-               OPT_VER = CHAR_MAX + 1,
-               OPT_WTMP,
+               OPT_WTMP = CHAR_MAX + 1,
                OPT_BTMP,
                OPT_NOTRUNC,
                OPT_NOHEAD,
@@ -1304,7 +1303,7 @@ int main(int argc, char *argv[])
        add_column(columns, ncolumns++, COL_UID);
        add_column(columns, ncolumns++, COL_USER);
 
-       while ((c = getopt_long(argc, argv, "acfGg:hLl:no:prsuVxzZ",
+       while ((c = getopt_long(argc, argv, "acefGg:hLl:no:prsuVzZ",
                                longopts, NULL)) != -1) {
 
                err_exclusive_options(c, longopts, excl, excl_st);