hwdb: fix parsing options

Closes: #1008989
This commit is contained in:
Michael Biebl 2022-04-05 22:11:42 +02:00
parent 142e1fb5c9
commit 6f12d42b95
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
From: Michael Biebl <biebl@debian.org>
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':

View File

@ -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