diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2008-03-12 13:31:23 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2008-03-12 13:31:23 +0000 |
commit | d2bea6aeb48e94edad27ef7133781c3011e4a860 (patch) | |
tree | 28a7a0bb9023a27dd0b65932e46ae5f423f6ba69 | |
parent | 0d8ed07949aa213c730e1a53da2f1fd073ccb61c (diff) |
Code was not passing script exit status; fix with macro.
deraadt@ OK
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <henning@openbsd.org> @@ -1807,7 +1807,7 @@ priv_script_go(void) script_flush_env(); - return (wstatus & 0xff); + return (WEXITSTATUS(wstatus)); } void |