Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2019 20:50:11 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Shawn Webb <shawn.webb@hardenedbsd.org>
Cc:        svn-src-head <svn-src-head@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>,  src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r351423 - in head: . sbin/ping6 sbin/ping6/tests
Message-ID:  <CAG6CVpWtJVNeAvX%2BPbGa1RtLFV9f0PfS8eU_6eGZs7wrmVCX2A@mail.gmail.com>
In-Reply-To: <20190826014726.mwddt4uwqoulewhh@mutt-hbsd>
References:  <201908231522.x7NFMLuJ068037@repo.freebsd.org> <20190826.042056.1329861772202588895.hrs@allbsd.org> <20190826014726.mwddt4uwqoulewhh@mutt-hbsd>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 25, 2019 at 6:47 PM Shawn Webb <shawn.webb@hardenedbsd.org> wrote:
> I wonder if something like this could be done:

Something like it could be; I suggested so two hours ago.

> Somewhere in ping(8):
> bool ping6_compat;
> if (strcmp(argv[0], "ping6")) {
>         ping6_compat = true;

You've gotten the sense of the basic C89 function strcmp() backwards.
Maybe it's a security feature that way?  You can add HardenedStrcmp to
your Easy Feature Comparison page.

Conrad



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpWtJVNeAvX%2BPbGa1RtLFV9f0PfS8eU_6eGZs7wrmVCX2A>