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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"