Make selection based archives use relative paths

This will create archives relative to your current working directory
rather than a full path when when creating the archive based on your
current selection.
This commit is contained in:
0xACE 2019-08-04 00:41:20 +02:00
parent 9d4498e7b3
commit 30651d16d7
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ static void archive_selection(const char *cmd, const char *archive, const char *
char *buf = (char *)malloc(CMD_LEN_MAX * sizeof(char));
snprintf(buf, CMD_LEN_MAX,
#ifdef __linux__
"xargs -0 -a %s %s %s", g_cppath, cmd, archive);
"sed -ze 's|^%s/||' '%s' | xargs -0 %s %s", curpath, g_cppath, cmd, archive);
#else
"cat %s | xargs -0 -o %s %s", g_cppath, cmd, archive);
#endif