tools: add cpio
[openwrt/staging/nbd.git] / tools / cpio / patches / 001-duplicate-program-name.patch
1 author Sergey Poznyakoff <gray@gnu.org>
2
3 https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=641d3f489cf6238bb916368d4ba0d9325a235afb
4
5 * src/global.c: Remove superfluous declaration of program_name
6
7 diff --git a/src/global.c b/src/global.c
8 index fb3abe9..acf92bc 100644
9 --- a/src/global.c
10 +++ b/src/global.c
11 @@ -184,9 +184,6 @@ unsigned int warn_option = 0;
12 /* Extract to standard output? */
13 bool to_stdout_option = false;
14
15 -/* The name this program was run with. */
16 -char *program_name;
17 -
18 /* A pointer to either lstat or stat, depending on whether
19 dereferencing of symlinks is done for input files. */
20 int (*xstat) ();