mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-06 19:38:03 -05:00
renamed temp files from pacman_XXXXXX to alpm_XXXXXX
This commit is contained in:
parent
c0cf6c422d
commit
4ad99832b5
@ -215,7 +215,7 @@ pmpkg_t *pkg_load(char *pkgfile)
|
|||||||
char *descfile;
|
char *descfile;
|
||||||
|
|
||||||
/* extract this file into /tmp. it has info for us */
|
/* extract this file into /tmp. it has info for us */
|
||||||
descfile = strdup("/tmp/pacman_XXXXXX");
|
descfile = strdup("/tmp/alpm_XXXXXX");
|
||||||
mkstemp(descfile);
|
mkstemp(descfile);
|
||||||
tar_extract_file(tar, descfile);
|
tar_extract_file(tar, descfile);
|
||||||
/* parse the info file */
|
/* parse the info file */
|
||||||
@ -243,7 +243,7 @@ pmpkg_t *pkg_load(char *pkgfile)
|
|||||||
char *str;
|
char *str;
|
||||||
|
|
||||||
MALLOC(str, PATH_MAX);
|
MALLOC(str, PATH_MAX);
|
||||||
fn = strdup("/tmp/pacman_XXXXXX");
|
fn = strdup("/tmp/alpm_XXXXXX");
|
||||||
mkstemp(fn);
|
mkstemp(fn);
|
||||||
tar_extract_file(tar, fn);
|
tar_extract_file(tar, fn);
|
||||||
fp = fopen(fn, "r");
|
fp = fopen(fn, "r");
|
||||||
|
Loading…
Reference in New Issue
Block a user