aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMunehisa Kamata <kamatam@amazon.com>2025-10-28 12:54:17 -0700
committerKarel Zak <kzak@redhat.com>2025-11-03 13:51:42 +0100
commit56e2c86c2c7ea012b63cd896d9ca3daa34f19565 (patch)
tree45e22f8caec01196e6f8a3198946fdcdfaa0dfe5
parentb5e0a42a9bd2116cc9ed35d9d804a07603281543 (diff)
downloadutil-linux-56e2c86c2c7ea012b63cd896d9ca3daa34f19565.tar.gz
wdctl: remove -d option leftover
-d option was removed in commit f56338b43973 ("wdctl: allow to specify more than one device"), but the optstring wasn't updated at that time and wdctl can still accept the option halfway as below: $ wdctl -d wdctl: option requires an argument -- 'd' whereas it should say: wdctl: invalid option -- 'd' So update the optstring. Fixes: f56338b43973 ("wdctl: allow to specify more than one device") Signed-off-by: Munehisa Kamata <kamatam@amazon.com>
-rw-r--r--sys-utils/wdctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c
index f3ae0e3f8c..0cf8ee7a43 100644
--- a/sys-utils/wdctl.c
+++ b/sys-utils/wdctl.c
@@ -779,7 +779,7 @@ int main(int argc, char *argv[])
close_stdout_atexit();
while ((c = getopt_long(argc, argv,
- "d:f:g:hFnITp:o:s:OrVx", long_opts, NULL)) != -1) {
+ "f:g:hFnITp:o:s:OrVx", long_opts, NULL)) != -1) {
err_exclusive_options(c, long_opts, excl, excl_st);