.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd December 10, 2023
+.Dd June 17, 2024
.Dt DHCPCD 8
.Os
.Sh NAME
or
.Fl 6
flags to specify an address family.
-If a lease is piped in via standard input then that is dumped.
+If a lease is piped in via standard input then use the special interface named
+.Ar -
+to dump it.
In this case, specifying an address family is mandatory.
.It Fl V , Fl Fl variables
Display a list of option codes, the associated variable and encoding for use in
#ifndef SMALL
if (ctx.options & DHCPCD_DUMPLEASE &&
- i > 0 &&
- ctx.ifc == 1 &&
- strlen(ctx.ifv[0]) == 1 &&
- ctx.ifv[0][0] == '-')
+ ctx.ifc == 1 && ctx.ifv[0][0] == '-' && ctx.ifv[0][1] == '\0')
{
ctx.options |= DHCPCD_FORKED; /* pretend child process */
#ifdef PRIVSEP