[git commit] udhcpc: if got IP successfully, disable -n for future renewals

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 12 23:26:17 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=aa369e0f0d37ba915616d77154ca8e99fb4d71b5
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Justin Maggard <jmaggard10 at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/udhcp/dhcpc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index fbb6457..ccc0393 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -637,6 +637,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
 						perform_release(requested_ip, server_addr);
 					goto ret0;
 				}
+				/* future renew failures should not exit (JM) */
+				opt &= ~OPT_n;
 #if BB_MMU /* NOMMU case backgrounded earlier */
 				if (!(opt & OPT_f)) {
 					client_background();
-- 
1.6.3.3



More information about the busybox-cvs mailing list