aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch')
-rw-r--r--recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch13
1 files changed, 6 insertions, 7 deletions
diff --git a/recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch b/recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch
index 037ea6b..f0a645a 100644
--- a/recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch
+++ b/recipes-core/swupd-server/swupd-server-2.53/0002-Add-system_argv-helper-for-safer-calls-to-system-uti.patch
@@ -10,7 +10,7 @@ on execvp() syscall and doesn't require escaping.
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@intel.com>
-Upstream-Status: Backport (v2.54+)
+Upstream-Status: Backport [v2.54+]
---
include/swupd.h | 1 +
@@ -27,7 +27,7 @@ index 522ac2e..ad4b967 100644
extern void string_or_die(char **strp, const char *fmt, ...);
extern void print_elapsed_time(struct timeval *previous_time, struct timeval *current_time);
+extern int system_argv(char *const argv[]);
-
+
extern bool signature_initialize(void);
extern void signature_terminate(void);
diff --git a/src/fullfiles.c b/src/fullfiles.c
@@ -47,7 +47,7 @@ index 1bb581e..fa78293 100644
}
- free(tarcommand);
}
-
+
/* step 2a: tar it with each compression type */
diff --git a/src/helpers.c b/src/helpers.c
index 65acffd..5884b51 100644
@@ -60,9 +60,9 @@ index 65acffd..5884b51 100644
+#include <sys/wait.h>
#include <fcntl.h>
#include <errno.h>
-
+
@@ -124,3 +125,65 @@ void print_elapsed_time(struct timeval *previous_time, struct timeval *current_t
-
+
free(elapsed);
}
+
@@ -127,6 +127,5 @@ index 65acffd..5884b51 100644
+ return status;
+ }
+}
---
+--
2.5.0
-