diff options
author | Hyejin Kim <hj8296@gmail.com> | 2015-05-03 15:53:37 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-05-03 15:53:37 -0500 |
commit | a967a669458ebb6b2a88a2d7e290ad449ab79d12 (patch) | |
tree | afb0166b1d7a65a12153efc33dffba27ad716eb1 /toys | |
parent | 2a7727dec265fa96e8522b0a557b72320d2889a7 (diff) | |
download | toybox-a967a669458ebb6b2a88a2d7e290ad449ab79d12.tar.gz |
dhcpd writes leases on "dhcpd.leases" file.
but, dumpleases read from "udhcpd.leases".
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/dumpleases.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/dumpleases.c b/toys/pending/dumpleases.c index fec39559..86cb4e76 100644 --- a/toys/pending/dumpleases.c +++ b/toys/pending/dumpleases.c @@ -41,7 +41,7 @@ void dumpleases_main(void) int64_t written_time , current_time, exp; int i, fd; - if(!(toys.optflags & FLAG_f)) TT.file = "/var/lib/misc/udhcpd.leases"; //DEF_LEASE_FILE + if(!(toys.optflags & FLAG_f)) TT.file = "/var/lib/misc/dhcpd.leases"; //DEF_LEASE_FILE fd = xopen(TT.file, O_RDONLY); xprintf("Mac Address IP Address Host Name Expires %s\n", (toys.optflags & FLAG_a) ? "at" : "in"); xread(fd, &written_time, sizeof(written_time)); |