bin/146189: /usr/bin/script broken in HEAD and 8-STABLE

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Apr 30 15:10:04 UTC 2010


>Number:         146189
>Category:       bin
>Synopsis:       /usr/bin/script broken in HEAD and 8-STABLE
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 30 15:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009 root at hades.panopticon:/async/obj/usr/src/sys/HADES i386

(but the PR applies to CURRENT and 8-STABLE)

>Description:
/usr/bin/script is broken in HEAD by r205008, in 8-STABLE by 205635.

After these changes it no longer exits with the same exit code as the command it runs (thus, if the command fails, it'll still exit with 0)
Among other things, this breaks portupgrade, as it now mistakingly interprets failed port builds as successfull ones, thus removing ports without installing newer versions.

>How-To-Repeat:
/usr/bin/script from r205007
# script -q /dev/null true; echo $?
0
# script -q /dev/null false; echo $?
1

/usr/bin/script from r205008
# script -q /dev/null true; echo $? 
0
# script -q /dev/null false; echo $?
0

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list