]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
nologin: ignore well-known shell command-line options in CI CHECK
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 25 Dec 2025 04:54:22 +0000 (23:54 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 1 Jan 2026 03:50:01 +0000 (22:50 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
login-utils/nologin.c

index 85ef3f002b408c14024e0764f640aea05f9f20eb..1653c1f47e69da41b67212cbeb90d080ff4b9630 100644 (file)
@@ -51,16 +51,15 @@ int main(int argc, char *argv[])
        };
        static const struct option longopts[] = {
                { "command",     required_argument, NULL, 'c'           },
-               { "init-file",   required_argument, NULL, OPT_INIT_FILE },
-               { "interactive", no_argument,       NULL, 'i'           },
-               { "login",       no_argument,       NULL, 'l'           },
-               { "noprofile",   no_argument,       NULL, OPT_NOPROFILE },
-               { "norc",        no_argument,       NULL, OPT_NORC      },
-               { "posix",       no_argument,       NULL, OPT_POSIX     },
-               { "rcfile",      required_argument, NULL, OPT_RCFILE    },
-               { "restricted",  no_argument,       NULL, 'r'           },
+               { "init-file",   required_argument, NULL, OPT_INIT_FILE },      /* IGNORECHECK=yes */
+               { "interactive", no_argument,       NULL, 'i'           },      /* IGNORECHECK=yes */
+               { "login",       no_argument,       NULL, 'l'           },      /* IGNORECHECK=yes */
+               { "noprofile",   no_argument,       NULL, OPT_NOPROFILE },      /* IGNORECHECK=yes */
+               { "norc",        no_argument,       NULL, OPT_NORC      },      /* IGNORECHECK=yes */
+               { "posix",       no_argument,       NULL, OPT_POSIX     },      /* IGNORECHECK=yes */
+               { "rcfile",      required_argument, NULL, OPT_RCFILE    },      /* IGNORECHECK=yes */
+               { "restricted",  no_argument,       NULL, 'r'           },      /* IGNORECHECK=yes */
                { "help",        no_argument,       NULL, 'h'           },
-               { "version",     no_argument,       NULL, 'V'           },
                { NULL, 0, NULL, 0 }
        };