mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 00:12:19 +00:00
abuild-fetch: adjust maxlength of outfile
so we have buffer space for the ".part" suffix.
This commit is contained in:
parent
529904eade
commit
606174552e
@ -81,7 +81,7 @@ int fork_exec(char *argv[], int showerr)
|
||||
int fetch(char *url, const char *destdir, bool insecure)
|
||||
{
|
||||
int lockfd, status=0;
|
||||
char outfile[PATH_MAX], partfile[PATH_MAX];
|
||||
char outfile[PATH_MAX-5], partfile[PATH_MAX];
|
||||
char *name, *p;
|
||||
struct flock fl = {
|
||||
.l_type = F_WRLCK,
|
||||
|
Loading…
Reference in New Issue
Block a user