From: Antonio Alvarez Feijoo Date: Tue, 9 Jan 2024 09:11:59 +0000 (+0100) Subject: analyze: man and --help fixes X-Git-Tag: v256-rc1~1228^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F30842%2Fhead;p=thirdparty%2Fsystemd.git analyze: man and --help fixes man: - `verify` requires an argument - `security` does not require an argument - `fdstore` requires an argument - `image-policy` requires an argument `--help` text: - missing `image-policy` command - `cat-config` requires NAME or PATH --- diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index 3f6f4d3d9d5..0b5e8ba974f 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -136,13 +136,13 @@ systemd-analyze OPTIONS verify - FILE + FILE systemd-analyze OPTIONS security - UNIT + UNIT systemd-analyze @@ -160,7 +160,7 @@ systemd-analyze OPTIONS fdstore - UNIT + UNIT systemd-analyze @@ -839,7 +839,7 @@ alias.service:7: Unknown key name 'MysteryKey' in section 'Service', ignoring. - <command>systemd-analyze fdstore <optional><replaceable>UNIT</replaceable>...</optional></command> + <command>systemd-analyze fdstore <replaceable>UNIT</replaceable>...</command> Lists the current contents of the specified service unit's file descriptor store. This shows names, inode types, device numbers, inode numbers, paths and open modes of the open file @@ -868,7 +868,7 @@ stored sock 0:8 4213190 - socket:[4213190] ro - <command>systemd-analyze image-policy <optional><replaceable>POLICY</replaceable>…</optional></command> + <command>systemd-analyze image-policy <replaceable>POLICY</replaceable>…</command> This command analyzes the specified image policy string, as per systemd.image-policy7. The diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 5f4d6634581..14458260c6a 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -218,7 +218,7 @@ static int help(int argc, char *argv[], void *userdata) { " dot [UNIT...] Output dependency graph in %s format\n" " dump [PATTERN...] Output state serialization of service\n" " manager\n" - " cat-config Show configuration file and drop-ins\n" + " cat-config NAME|PATH... Show configuration file and drop-ins\n" " unit-files List files and symlinks for units\n" " unit-paths List load directories for units\n" " exit-status [STATUS...] List exit status definitions\n" @@ -238,6 +238,7 @@ static int help(int argc, char *argv[], void *userdata) { " inspect-elf FILE... Parse and print ELF package metadata\n" " malloc [D-BUS SERVICE...] Dump malloc stats of a D-Bus service\n" " fdstore SERVICE... Show file descriptor store contents of service\n" + " image-policy POLICY... Analyze image policy string\n" " pcrs [PCR...] Show TPM2 PCRs and their names\n" " srk > FILE Write TPM2 SRK to stdout\n" "\nOptions:\n"