bin/53377: [PATCH] su does not return exit status of executed
command
Ceri Davies
ceri at FreeBSD.org
Mon Jun 16 15:10:12 PDT 2003
The following reply was made to PR bin/53377; it has been noted by GNATS.
From: Ceri Davies <ceri at FreeBSD.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit at FreeBSD.org>
Cc:
Subject: Re: bin/53377: [PATCH] su does not return exit status of executed command
Date: Mon, 16 Jun 2003 23:03:51 +0100
Adding to audit trail, from misfiled PR bin/53380:
Date: Mon, 16 Jun 2003 16:56:21 +0100
From: Mark Murray <mark at grondar.org>
Message-Id: <200306161556.h5GFuMHh089570 at grimreaper.grondar.org>
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
More information about the freebsd-bugs
mailing list