diff options
author | delphij <delphij@FreeBSD.org> | 2017-12-25 04:32:15 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2017-12-25 04:32:15 +0000 |
commit | a25f78bb70a0cdb8f094643869a3f0965baf04bd (patch) | |
tree | 71e94e305529ae06aabf651180df8d94339bd40a | |
parent | 77af9f99e4e44b30e2ff93c3e60b6eebb50d7d25 (diff) | |
download | FreeBSD-src-a25f78bb70a0cdb8f094643869a3f0965baf04bd.zip FreeBSD-src-a25f78bb70a0cdb8f094643869a3f0965baf04bd.tar.gz |
MFC r326185: Set errno to EFTYPE instead of EINVAL to be more consistent
with the rest of code.
-rw-r--r-- | usr.bin/gzip/zuncompress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gzip/zuncompress.c b/usr.bin/gzip/zuncompress.c index 6069cae..d99e70f 100644 --- a/usr.bin/gzip/zuncompress.c +++ b/usr.bin/gzip/zuncompress.c @@ -279,7 +279,7 @@ zread(void *cookie, char *rbp, int num) if (zs->u.r.zs_code > zs->zs_free_ent || zs->u.r.zs_oldcode == -1) { /* Bad stream. */ - errno = EINVAL; + errno = EFTYPE; return (-1); } *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar; |