summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <[email protected]>2015-04-16 13:08:28 +0200
committerZenWalker <[email protected]>2019-12-05 20:27:38 +0100
commitdc5d80a7d6d3f861d6de5d3705b391a91a7209d7 (patch)
treebe4d959c6b492265ec9684c76a48349de470693a /src/commands
parent9ed63df945aedeb9de04719854c05a2f7cd25f10 (diff)
downloadengrampa-dc5d80a7d6d3f861d6de5d3705b391a91a7209d7.tar.bz2
engrampa-dc5d80a7d6d3f861d6de5d3705b391a91a7209d7.tar.xz
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
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
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);
}