From d2bea6aeb48e94edad27ef7133781c3011e4a860 Mon Sep 17 00:00:00 2001 From: Hugh Graham Date: Wed, 12 Mar 2008 13:31:23 +0000 Subject: Code was not passing script exit status; fix with macro. deraadt@ OK --- sbin/dhclient/dhclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/dhclient/dhclient.c') diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index b0dec7c8f29..512a478e7c0 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.116 2007/10/16 20:19:26 sobrado Exp $ */ +/* $OpenBSD: dhclient.c,v 1.117 2008/03/12 13:31:22 hugh Exp $ */ /* * Copyright 2004 Henning Brauer @@ -1807,7 +1807,7 @@ priv_script_go(void) script_flush_env(); - return (wstatus & 0xff); + return (WEXITSTATUS(wstatus)); } void -- cgit v1.2.3