From mark@grondar.org  Mon Jun 16 09:00:18 2003
Return-Path: <mark@grondar.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 29D1B37B401; Mon, 16 Jun 2003 09:00:18 -0700 (PDT)
Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 2208443F75; Mon, 16 Jun 2003 09:00:17 -0700 (PDT)
	(envelope-from mark@grondar.org)
Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1])
	by storm.FreeBSD.org.uk (8.12.9/8.12.9) with ESMTP id h5GG091f053222;
	Mon, 16 Jun 2003 17:00:09 +0100 (BST)
	(envelope-from mark@grondar.org)
Received: (from Ugrondar@localhost)
	by storm.FreeBSD.org.uk (8.12.9/8.12.7/Submit) with UUCP id h5GG09v4053221;
	Mon, 16 Jun 2003 17:00:09 +0100 (BST)
Received: from grondar.org (localhost [127.0.0.1])
	by grimreaper.grondar.org (8.12.9/8.12.9) with ESMTP id h5GFuMHh089570;
	Mon, 16 Jun 2003 16:56:22 +0100 (BST)
	(envelope-from mark@grondar.org)
Message-Id: <200306161556.h5GFuMHh089570@grimreaper.grondar.org>
Date: Mon, 16 Jun 2003 16:56:21 +0100
From: Mark Murray <mark@grondar.org>
Sender: mark@grondar.org
To: Cejka Rudolf <cejkar@fit.vutbr.cz>
Cc: FreeBSD-gnats-submit@freebsd.org, markm@freebsd.org
In-Reply-To: Your message of "Mon, 16 Jun 2003 17:04:03 +0200."
             <200306161504.h5GF43CC089479@kazi.fit.vutbr.cz> 
Subject: Re: [PATCH] su does not return exit status of executed command 

>Number:         53380
>Category:       bin
>Synopsis:       Re: [PATCH] su does not return exit status of executed command
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 16 09:00:30 PDT 2003
>Closed-Date:    Mon Jun 16 15:04:34 PDT 2003
>Last-Modified:  Mon Jun 16 15:04:34 PDT 2003
>Originator:     Mark Murray
>Release:        
>Organization:
>Environment:
>Description:
 Hi
 
 Thanks! I have a clean-up of su(8) (uncommitted, and I'm incorporating
 this in it.
 
 M
 
 Cejka Rudolf writes:
 > >Fix:
 > 
 > $ FreeBSD: src/usr.bin/su/su.c,v 1.68 2003/04/08 16:59:53 des Exp $
 > 
 > --- su.c.orig	Mon Jun 16 16:35:22 2003
 > +++ su.c	Mon Jun 16 16:46:17 2003
 > @@ -378,7 +378,7 @@
 >  		if (pid == -1)
 >  			err(1, "waitpid");
 >  		PAM_END();
 > -		exit(statusp);
 > +		exit(WEXITSTATUS(statusp));
 >  	case -1:
 >  		err(1, "fork");
 >  		PAM_END();
 
 M
 --
 Mark Murray
 iumop ap!sdn w,I idlaH
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Mon Jun 16 15:03:59 PDT 2003 
State-Changed-Why:  
Misfiled followup to bin/53377 [content migrated]. 


Responsible-Changed-From-To: gnats-admin->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Mon Jun 16 15:03:59 PDT 2003 
Responsible-Changed-Why:  

Take from gnats-admin. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53380 
>Unformatted:
