From 6f12d42b95cfd8b4a2c53b7f130d3cdfd326d472 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 5 Apr 2022 22:11:42 +0200 Subject: [PATCH] hwdb: fix parsing options Closes: #1008989 --- debian/patches/hwdb-fix-parsing-options.patch | 24 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 25 insertions(+) create mode 100644 debian/patches/hwdb-fix-parsing-options.patch diff --git a/debian/patches/hwdb-fix-parsing-options.patch b/debian/patches/hwdb-fix-parsing-options.patch new file mode 100644 index 000000000..c4cab2740 --- /dev/null +++ b/debian/patches/hwdb-fix-parsing-options.patch @@ -0,0 +1,24 @@ +From: Michael Biebl +Date: Tue, 5 Apr 2022 22:11:04 +0200 +Subject: hwdb: fix parsing options + +Fixes #22976. + +(cherry picked from commit 5674b74c4f99e433fd8e7242e9f16f6ddfece94c) +--- + src/hwdb/hwdb.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c +index 26c8d66..a8c1623 100644 +--- a/src/hwdb/hwdb.c ++++ b/src/hwdb/hwdb.c +@@ -73,7 +73,7 @@ static int parse_argv(int argc, char *argv[]) { + assert(argc >= 0); + assert(argv); + +- while ((c = getopt_long(argc, argv, "ust:r:h", options, NULL)) >= 0) ++ while ((c = getopt_long(argc, argv, "sr:h", options, NULL)) >= 0) + switch(c) { + + case 'h': diff --git a/debian/patches/series b/debian/patches/series index 7ef7c213e..65fcbab87 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +hwdb-fix-parsing-options.patch debian/Use-Debian-specific-config-files.patch debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch debian/Make-run-lock-tmpfs-an-API-fs.patch