Date: Mon, 25 Dec 2017 04:32:15 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r327171 - stable/11/usr.bin/gzip Message-ID: <201712250432.vBP4WFuc072034@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Dec 25 04:32:15 2017 New Revision: 327171 URL: https://svnweb.freebsd.org/changeset/base/327171 Log: MFC r326185: Set errno to EFTYPE instead of EINVAL to be more consistent with the rest of code. Modified: stable/11/usr.bin/gzip/zuncompress.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.bin/gzip/zuncompress.c ============================================================================== --- stable/11/usr.bin/gzip/zuncompress.c Mon Dec 25 00:25:15 2017 (r327170) +++ stable/11/usr.bin/gzip/zuncompress.c Mon Dec 25 04:32:15 2017 (r327171) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712250432.vBP4WFuc072034>