From dc5d80a7d6d3f861d6de5d3705b391a91a7209d7 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Thu, 16 Apr 2015 13:08:28 +0200 Subject: add a configure environment variable to select the cpio path on some systems (like OpenBSD), gcpio is prefered over the base cpio. origin commit: https://gitlab.gnome.org/GNOME/file-roller/commit/8a51165 --- src/commands/rpm2cpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/rpm2cpio.c') diff --git a/src/commands/rpm2cpio.c b/src/commands/rpm2cpio.c index 0dd3caf..bdadb3d 100644 --- a/src/commands/rpm2cpio.c +++ b/src/commands/rpm2cpio.c @@ -128,7 +128,7 @@ main (int argc, char **argv) archive_command = "bzip2 -dc"; fclose (stream); - command = g_strdup_printf ("sh -c \"dd if=%s ibs=%u skip=1 2>/dev/null | %s | cpio %s\"", g_shell_quote (filename), offset, archive_command, cpio_args->str); + command = g_strdup_printf ("sh -c \"dd if=%s ibs=%u skip=1 2>/dev/null | %s | " CPIO_PATH " %s\"", g_shell_quote (filename), offset, archive_command, cpio_args->str); return system (command); } -- cgit v1.2.1