diff --git a/fileio.c b/fileio.c index ba0a1d0..03fc4be 100644 --- a/fileio.c +++ b/fileio.c @@ -2006,6 +2006,7 @@ int do_string(__G__ length, option) /* return PK-type error code */ unsigned comment_bytes_left; unsigned int block_len; int error=PK_OK; + unsigned int length2; #ifdef AMIGA char tmp_fnote[2 * AMIGA_FILENOTELEN]; /* extra room for squozen chars */ #endif @@ -2292,8 +2293,12 @@ int do_string(__G__ length, option) /* return PK-type error code */ seek_zipf(__G__ G.cur_zipfile_bufstart - G.extra_bytes + (G.inptr-G.inbuf) + length); } else { - if (readbuf(__G__ (char *)G.extra_field, length) == 0) + if ((length2 = readbuf(__G__ (char *)G.extra_field, length)) == 0) return PK_EOF; + if(length2 < length) { + memset (__G__ (char *)G.extra_field+length2, 0 , length-length2); + length = length2; + } /* Looks like here is where extra fields are read */ getZip64Data(__G__ G.extra_field, length); #ifdef UNICODE_SUPPORT x/refs/?id=17213c1b20dd784bfe421813b1ce9995be48261f'>refslogtreecommitdiff
path: root/etc/guix-publish.service.in
AgeCommit message (Expand)Author
2022-10-23etc: systemd services shouldn't ‘RemainAfterExit’....* etc/guix-daemon.service.in (RemainAfterExit): Don't. * etc/guix-publish.service.in (RemainAfterExit): Likewise don't. Tobias Geerinckx-Rice
2022-10-23etc: Add ‘Restart=always’ to both systemd services....* etc/guix-daemon.service.in (Restart): ‘Always’ do. * etc/guix-publish.service.in (Restart): Likewise. Tobias Geerinckx-Rice
2021-02-09etc: 'guix-publish.service' depends on 'guix-daemon.service'....Reported by Dimitri Delabroye <dimitri.delabroye@inria.fr>. * etc/guix-publish.service.in (Requires, PartOf, After): New fields. Ludovic Courtès