[git commit master] udhcpd: fix -v/-P mixup
Denys Vlasenko
vda.linux at googlemail.com
Sat Mar 27 22:24:57 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=406bd1441694ad441fed852bf17e79020fdd44e5
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/udhcp/dhcpd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 9e726fb..2d1d5de 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -303,7 +303,7 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
logmode |= LOGMODE_SYSLOG;
}
#if ENABLE_FEATURE_UDHCP_PORT
- if (opt & 4) { /* -P */
+ if (opt & 8) { /* -P */
SERVER_PORT = xatou16(str_P);
CLIENT_PORT = SERVER_PORT + 1;
}
--
1.6.3.3
More information about the busybox-cvs
mailing list