From 54b231921c05c68d2f7a3800158822d5198c5a30 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 8 Feb 2007 17:28:27 +0000 Subject: also give directories to "cpio -pdu" to ensure directories are created with same rights --- lib/Youri/Submit/Action/Unpack.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Youri/Submit/Action/Unpack.pm b/lib/Youri/Submit/Action/Unpack.pm index 96c77f7..9301c89 100644 --- a/lib/Youri/Submit/Action/Unpack.pm +++ b/lib/Youri/Submit/Action/Unpack.pm @@ -55,7 +55,7 @@ sub run { } foreach my $dest (@dests) { - my $cmd = "cd $tempdir/$self->{_source_subdir}; find -type f | cpio -pdu $dest"; + my $cmd = "cd $tempdir/$self->{_source_subdir}; find | cpio -pdu $dest"; print "Submit::Action::Unpack: doing $cmd\n" if $self->{_verbose}; if (!$self->{_test}) { my @l = glob("$tempdir/$self->{_source_subdir}"); -- cgit v1.2.1