1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

unposted: fix error message for short ZWC file

This commit is contained in:
Peter Stephenson 2007-04-23 17:24:22 +00:00
parent d296535d38
commit eea55e45be
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2007-04-23 Peter Stephenson <pws@csr.com>
* unposted: Src/parse.c: make sure we get "invalid zwc file"
for a short file (not "wrong version").
* 23313: Src/parse.c: the shell didn't actually check the version
of ZWC files anyway.

View file

@ -2607,7 +2607,7 @@ bin_zcompile(char *nam, char **args, Options ops, UNUSED(int func))
static Wordcode
load_dump_header(char *nam, char *name, int err)
{
int fd, v = 0;
int fd, v = 1;
wordcode buf[FD_PRELEN + 1];
if ((fd = open(name, O_RDONLY)) < 0) {