Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Dec 2017 04:34:10 +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-10@freebsd.org
Subject:   svn commit: r327172 - stable/10/usr.bin/gzip
Message-ID:  <201712250434.vBP4YA5l072162@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Dec 25 04:34:10 2017
New Revision: 327172
URL: https://svnweb.freebsd.org/changeset/base/327172

Log:
  MFC r326185: Set errno to EFTYPE instead of EINVAL to be more consistent
  with the rest of code.

Modified:
  stable/10/usr.bin/gzip/zuncompress.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/gzip/zuncompress.c
==============================================================================
--- stable/10/usr.bin/gzip/zuncompress.c	Mon Dec 25 04:32:15 2017	(r327171)
+++ stable/10/usr.bin/gzip/zuncompress.c	Mon Dec 25 04:34:10 2017	(r327172)
@@ -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?201712250434.vBP4YA5l072162>