Two trivial patches for /bin/sh

Matthew Dillon dillon at apollo.backplane.com
Mon Jun 5 08:58:05 PDT 2006


:I wanted to submit these before I attempt any serious surgery on /bin/sh.
:
:These two patches *mostly* bring /bin/sh up to WARNS?=3D3. They don't corre=
:ct=20
:the "comparison is always true due to limited range of data type" errors th=
:at=20
:also appear on WARNS?=3D0.
:
:The eval.c patch fixes possible logjmp clobbering. The histedit.c patch fix=
:es=20
:a warning of possibly returning an uninitialized value from str_to_event. (=
:I=20
:initialize 'i' as well for good measure.)

    These patches didn't patch cleanly but since they are so trivial I
    was able to patch them in manually.

    I did something slightly different for histedit.c.  I only initiialized
    retval.  'i' doesn't need initialization at the top.

						-Matt





More information about the Submit mailing list