Date: Fri, 20 Oct 2017 07:42:00 +0000 (UTC) From: "Andrey V. Elsukov" <ae@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: r324791 - stable/11/sbin/ipfw Message-ID: <201710200742.v9K7g0Ft019336@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Fri Oct 20 07:42:00 2017 New Revision: 324791 URL: https://svnweb.freebsd.org/changeset/base/324791 Log: MFC r324592: Return 'errno' value from the table_do_modify_record(), it is expected by table_modify_record(). This makes quiet operations with tables really quiet. PR: 222953 Modified: stable/11/sbin/ipfw/tables.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/ipfw/tables.c ============================================================================== --- stable/11/sbin/ipfw/tables.c Fri Oct 20 07:40:11 2017 (r324790) +++ stable/11/sbin/ipfw/tables.c Fri Oct 20 07:42:00 2017 (r324791) @@ -885,6 +885,8 @@ table_do_modify_record(int cmd, ipfw_obj_header *oh, sz += sizeof(*oh); error = do_get3(cmd, &oh->opheader, &sz); + if (error != 0) + error = errno; tent = (ipfw_obj_tentry *)(ctlv + 1); /* Copy result back to provided buffer */ memcpy(tent_base, ctlv + 1, sizeof(*tent) * count);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710200742.v9K7g0Ft019336>