Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2016 21:17:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195929] usr.bin/sed -- constify, remove line-length limits
Message-ID:  <bug-195929-8-vaPkkgrUuO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-195929-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-195929-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D195929

Mikhail Teterin <mi@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #172615|0                           |1
        is obsolete|                            |

--- Comment #31 from Mikhail Teterin <mi@FreeBSD.org> ---
Created attachment 172616
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172616&action=
=3Dedit
Updated patch

(In reply to Mikhail Teterin from comment #30)
> The recently-introduced bug must be in the process.c somewhere:

Yes, it would seem, the bug was introduced in base r300555. The check for
finding the right number of re-occurences is off by one. With this hunk add=
ed,
things seem to work:

        /* Did not find the requested number of matches. */
-       if (n > 1)
+       if (n > 0)
                return (0);

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195929-8-vaPkkgrUuO>