dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

dumplease redirect stdout blocked by rlimit (SIGXFSZ)

Open ColinMcInnes opened this issue 1 year ago • 0 comments

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.

ColinMcInnes avatar Oct 16 '24 16:10 ColinMcInnes