From: Florian Weimer Date: Sun, 25 May 2008 10:33:07 +0000 (+0200) Subject: Redirect standard input in safe_backtick_stderr X-Git-Url: https://repo.or.cz/w/dowkd.git/commitdiff_plain/06fc019fa24c045e0fc56bade1200aabedd92c5a Redirect standard input in safe_backtick_stderr --- diff --git a/dowkd.in b/dowkd.in index c544af6..10e9b04 100644 --- a/dowkd.in +++ b/dowkd.in @@ -157,6 +157,7 @@ sub safe_backtick_stderr { return join('', @result); } } else { + open STDIN, '/dev/null' or die "error: could not redirect stdin: $!"; open STDERR, '>&STDOUT' or die "error: could not redirect stderr: $!"; exec @args or die "exec: failed: $!"; }