Skip to content

dumplease redirect stdout blocked by rlimit (SIGXFSZ) #386

@ColinMcInnes

Description

@ColinMcInnes

dumping lease to stdout works fine, but if I try to redirect it, rlimit kicks in and causes exit with file size signal.

dhcpcd --config /etc/dhcp/dhcpcd.conf --dumplease -4 eth0 > lease.txt
Program terminated with signal SIGXFSZ, File size limit exceeded.

if PRIVSEP but ctx->options is DHCPCD_DUMPLEASE, we should relax the rlimit to a reasonable lease file size while dumping the lease.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions