]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Improve and document prior.
authorRoy Marples <roy@marples.name>
Mon, 17 Jun 2024 09:04:16 +0000 (10:04 +0100)
committerRoy Marples <roy@marples.name>
Mon, 17 Jun 2024 09:04:16 +0000 (10:04 +0100)
src/dhcpcd.8.in
src/dhcpcd.c

index 93232840bdd5ab7524c73e6e6f72edb8273f444a..a84088a6264de92275305d418554d4e774cad3c6 100644 (file)
@@ -24,7 +24,7 @@
 .\" 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
@@ -716,7 +716,9 @@ Use the
 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
index 84b4d8f11b7ba1c347a80fd72eda0904567aebfa..2cadf29156f06996dca432658fa02aed7992e467 100644 (file)
@@ -2277,10 +2277,7 @@ printpidfile:
 
 #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