mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Be more consistant and use UNZIPPER everywhere.
This commit is contained in:
parent
f0693a7533
commit
df28e5cc57
2 changed files with 5 additions and 6 deletions
|
|
@ -685,8 +685,7 @@ mediaExtractDistEnd(int zpid, int cpid)
|
|||
/* Don't check exit status - gunzip seems to return a bogus one! */
|
||||
if (i < 0) {
|
||||
if (isDebug())
|
||||
msgDebug("wait for %s returned status of %d!\n",
|
||||
USE_GZIP ? "gunzip" : "bunzip2", i);
|
||||
msgDebug("wait for %s returned status of %d!\n", UNZIPPER, i);
|
||||
return FALSE;
|
||||
}
|
||||
i = waitpid(cpid, &j, 0);
|
||||
|
|
@ -802,8 +801,7 @@ mediaExtractDist(char *dir, char *dist, FILE *fp)
|
|||
/* Don't check exit status - gunzip seems to return a bogus one! */
|
||||
if (i < 0) {
|
||||
if (isDebug())
|
||||
msgDebug("wait for %s returned status of %d!\n",
|
||||
USE_GZIP ? "gunzip" : "bunzip2", i);
|
||||
msgDebug("wait for %s returned status of %d!\n", UNZIPPER, i);
|
||||
return FALSE;
|
||||
}
|
||||
i = waitpid(cpid, &j, 0);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ reap_children(int sig)
|
|||
static char *
|
||||
expand(char *fname)
|
||||
{
|
||||
char *gunzip = RunningAsInit ? "/stand/gunzip" : "/usr/bin/gunzip";
|
||||
char *unzipper = RunningAsInit ? "/stand/" UNZIPPER : "/usr/bin/" UNZIPPER;
|
||||
|
||||
if (!directory_exists(DOC_TMP_DIR)) {
|
||||
Mkdir(DOC_TMP_DIR);
|
||||
|
|
@ -125,7 +125,8 @@ expand(char *fname)
|
|||
}
|
||||
else
|
||||
unlink(DOC_TMP_FILE);
|
||||
if (!file_readable(fname) || vsystem("%s < %s > %s", gunzip, fname, DOC_TMP_FILE))
|
||||
if (!file_readable(fname) || vsystem("%s < %s > %s", unzipper, fname,
|
||||
DOC_TMP_FILE))
|
||||
return NULL;
|
||||
return DOC_TMP_FILE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue