···11+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22+From: Liav A <liavalb@gmail.com>
33+Date: Sat, 25 Jun 2022 05:45:29 +0300
44+Subject: [PATCH] Use global program_name variable from gnu dir
55+66+Without this patch being applied, there would be a conflict between the
77+variables between the 2 locations, so it will not compile otherwise.
88+99+---
1010+ src/global.c | 4 +---
1111+ 1 file changed, 1 insertion(+), 3 deletions(-)
1212+1313+diff --git a/src/global.c b/src/global.c
1414+index fb3abe9..9ea63aa 100644
1515+--- a/src/global.c
1616++++ b/src/global.c
1717+@@ -20,6 +20,7 @@
1818+ #include <system.h>
1919+2020+ #include <sys/types.h>
2121++#include "gnu/progname.h"
2222+ #include "cpiohdr.h"
2323+ #include "dstring.h"
2424+ #include "extern.h"
2525+@@ -184,9 +185,6 @@ unsigned int warn_option = 0;
2626+ /* Extract to standard output? */
2727+ bool to_stdout_option = false;
2828+2929+-/* The name this program was run with. */
3030+-char *program_name;
3131+-
3232+ /* A pointer to either lstat or stat, depending on whether
3333+ dereferencing of symlinks is done for input files. */
3434+ int (*xstat) ();
+8
Ports/cpio/patches/ReadMe.md
···11+# Patches for cpio on SerenityOS
22+33+## `0001-Use-global-program_name-variable-from-gnu-dir.patch`
44+55+Use global program_name variable from gnu dir
66+77+Without this patch being applied, there would be a conflict between the
88+variables between the 2 locations, so it will not compile otherwise.