diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:05:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:05:37 +0000 |
commit | bb23c069191f18ed11b826371ed3571e214b41e3 (patch) | |
tree | 8a7afbb2ead270f08c3fa4741da0522418142787 /networking/udhcp/dhcpc.c | |
parent | 9f7b92a2e13b184b1d6f7d9fbddc133666224bcf (diff) | |
download | busybox-w32-bb23c069191f18ed11b826371ed3571e214b41e3.tar.gz busybox-w32-bb23c069191f18ed11b826371ed3571e214b41e3.tar.bz2 busybox-w32-bb23c069191f18ed11b826371ed3571e214b41e3.zip |
if pidfile turned out to be !regular file, do not unlink it.
It's most probably the /dev/null.
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/dhcpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 7cb1dfe5d..7d38742b9 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -546,7 +546,7 @@ int udhcpc_main(int argc, char **argv) | |||
546 | ret0: | 546 | ret0: |
547 | retval = 0; | 547 | retval = 0; |
548 | ret: | 548 | ret: |
549 | if (client_config.pidfile) | 549 | /*if (client_config.pidfile) - remove_pidfile has it's own check */ |
550 | remove_pidfile(client_config.pidfile); | 550 | remove_pidfile(client_config.pidfile); |
551 | return retval; | 551 | return retval; |
552 | } | 552 | } |