aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch')
-rw-r--r--recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch b/recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch
index c5faae8..2e9bd5b 100644
--- a/recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch
+++ b/recipes-core/swupd-client/swupd-client-2.87/0001-Tolerate-quotes-in-os-release-files.patch
@@ -10,7 +10,7 @@ to the format defined in systemd.
This patch removes quotes from the values before trying to
transform them into integer version id.
-Upstream-Status: Backport (v3.0.0+)
+Upstream-Status: Backport [v3.0.0+]
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@intel.com>
---
@@ -26,13 +26,13 @@ index d8ad76b..1708a98 100644
int v = -1;
char *buildstamp;
+ char *src, *dest;
-
+
string_or_die(&buildstamp, "%s/usr/lib/os-release", path_prefix);
file = fopen(buildstamp, "rm");
@@ -116,7 +117,22 @@ int read_version_from_subvol_file(char *path_prefix)
if (fgets(line, LINE_MAX, file) == NULL)
break;
-
+
- if (strncmp(line,"VERSION_ID=", 11) == 0) {
+ if (strncmp(line, "VERSION_ID=", 11) == 0) {
+ src = &line[11];
@@ -53,6 +53,5 @@ index d8ad76b..1708a98 100644
v = strtoull(&line[11], NULL, 10);
break;
}
---
+--
2.5.0
-