Skip to content

Commit

Permalink
Improve and document prior.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmarples committed Jun 17, 2024
1 parent 2580687 commit 4395477
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/dhcpcd.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions src/dhcpcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2277,10 +2277,7 @@ main(int argc, char **argv, char **envp)

#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
Expand Down

0 comments on commit 4395477

Please sign in to comment.