SHA256
1
0
forked from pool/libguestfs

- Fix command line argument parsing with upstream commit

Split-chown-parameter-on-character.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=570
This commit is contained in:
Charles Arnold 2024-03-28 19:18:42 +00:00 committed by Git OBS Bridge
parent b13d3ce30c
commit 768d2e7c5e
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Subject: generator/customize.ml: Split --chown parameter on ':' character
From: Richard W.M. Jones rjones@redhat.com Fri Jan 19 13:18:00 2024 +0000
Date: Fri Jan 19 13:24:37 2024 +0000:
Git: e9a728bb22dfa1de5328fbbe7d6d7acad2dbed64
The previous code split it on ',' which was completely wrong.
(It reveals the lack of testing however).
Fixes: commit c08032ebe2763f5e9ce5b14e003721475219d390
Reported-by: Yongkui Guo
diff --git a/generator/customize.ml b/generator/customize.ml
index e64b45c0d..e2c4b6051 100644
--- a/generator/customize.ml
+++ b/generator/customize.ml
@@ -775,7 +775,7 @@ let rec argspec () =
let len = String.length arg in
String.sub arg 0 i, String.sub arg (i+1) (len-(i+1))
and split_string_triplet option_name arg =
- match String.nsplit ~max:3 \",\" arg with
+ match String.nsplit ~max:3 \":\" arg with
| [a; b; c] -> a, b, c
| _ ->
error (f_\"invalid format for '--%%s' parameter, see the man page\")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 28 13:15:07 MDT 2024 - carnold@suse.com
- Fix command line argument parsing with upstream commit
Split-chown-parameter-on-character.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 5 14:24:08 MST 2024 - carnold@suse.com Mon Feb 5 14:24:08 MST 2024 - carnold@suse.com

View File

@ -33,6 +33,7 @@ Source101: README
# Patches # Patches
Patch1: use-rtc-driftfix-slew-for-x86-only.patch Patch1: use-rtc-driftfix-slew-for-x86-only.patch
Patch2: Split-chown-parameter-on-character.patch
BuildRequires: bison BuildRequires: bison
BuildRequires: file-devel BuildRequires: file-devel