summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugh <hugh@openbsd.org>2008-03-12 13:31:22 +0000
committerhugh <hugh@openbsd.org>2008-03-12 13:31:22 +0000
commitb215a882fd7e98ff38505d62bfc539bee124e0ee (patch)
tree1c6db570d17e77d80f6a9039e28746fc68d0efca
parentif (class != BER_CLASS_UNIVERSAL || type != BER_TYPE_SEQUENCE) (diff)
downloadwireguard-openbsd-b215a882fd7e98ff38505d62bfc539bee124e0ee.tar.xz
wireguard-openbsd-b215a882fd7e98ff38505d62bfc539bee124e0ee.zip
Code was not passing script exit status; fix with macro.
deraadt@ OK
-rw-r--r--sbin/dhclient/dhclient.c4
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