From 105fba4593f02fccb85909ea3bc30ed8c426908d Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Tue, 27 May 2014 12:05:12 +0200 Subject: Escape hatch for the restrictive umask Some things should not be run with the restrictive umask. This provides a means to do so: do_readable. --- src/lib/dhcp/dhcpcd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/dhcp/dhcpcd') diff --git a/src/lib/dhcp/dhcpcd b/src/lib/dhcp/dhcpcd index c729c08..5107819 100644 --- a/src/lib/dhcp/dhcpcd +++ b/src/lib/dhcp/dhcpcd @@ -5,16 +5,14 @@ dhcpcd_start() { report_error "Using 'dhcpcd' for IPv6 is currently not possible in netctl" return 1 fi - rm -f "/run/dhcpcd-$Interface".{pid,cache} # If using own dns, tell dhcpcd to NOT replace resolv.conf [[ $DNS ]] && DhcpcdOptions+=" -C resolv.conf" - do_debug dhcpcd -4qL -t "${TimeoutDHCP:-30}" $DhcpcdOptions "$Interface" |& report_debug "$(cat)" + do_debug do_readable dhcpcd -4qL -t "${TimeoutDHCP:-30}" $DhcpcdOptions "$Interface" |& report_debug "$(cat)" # The first array value of PIPESTATUS is the exit status of dhcpcd if (( PIPESTATUS != 0 )); then report_error "DHCP IP lease attempt failed on interface '$Interface'" return 1 fi - chmod 644 "/run/dhcpcd-$Interface.pid" } dhcpcd_stop() { -- cgit v1.2.3-24-g4f1b