From a967a669458ebb6b2a88a2d7e290ad449ab79d12 Mon Sep 17 00:00:00 2001 From: Hyejin Kim Date: Sun, 3 May 2015 15:53:37 -0500 Subject: dhcpd writes leases on "dhcpd.leases" file. but, dumpleases read from "udhcpd.leases". --- toys/pending/dumpleases.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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)); -- cgit v1.2.3