From 07fde5e61b0c4c60027e86a0e3171ad700b38c89 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:24:54 +0200 Subject: Adding upstream version 0.85.9. Signed-off-by: Daniel Baumann --- lib/Sbuild/Utility.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Sbuild/Utility.pm') diff --git a/lib/Sbuild/Utility.pm b/lib/Sbuild/Utility.pm index 9cdfff1..6828692 100644 --- a/lib/Sbuild/Utility.pm +++ b/lib/Sbuild/Utility.pm @@ -420,6 +420,10 @@ sub get_unshare_cmd($) { my $command = <<"EOF"; require 'syscall.ph'; +# Workaround for #1070007 (Permission denied if STDOUT points to a pipe) +use Fcntl qw(:mode); +chmod(0666, *STDOUT) if ((stat(*STDOUT))[2] & S_IFMT) == S_IFIFO; + # Create a pipe for the parent process to signal the child process that it is # done with calling unshare() so that the child can go ahead setting up # uid_map and gid_map. -- cgit v1.2.3