Skip to content

Commit

Permalink
Item11172: avoid ownership and dereference links
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@12727 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 7, 2011
1 parent 6cc9cc9 commit adef356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BuildContrib/lib/Foswiki/Contrib/Build.pm
Expand Up @@ -1607,7 +1607,9 @@ sub target_archive {
. $target
. '.zip");' );

$this->sys_action( 'tar', 'czpf', $project . '.tgz', '*' );
# SMELL: sys_action will auto quote any parameter containing a space. So the parameter
# and argument for group and user must be passed in as separate parameters.
$this->sys_action( 'tar', '--owner', '0', '--group', '0', '-czhpf', $project . '.tgz', '*' );
$this->perl_action( 'File::Copy::move("'
. $project
. '.tgz", "'
Expand Down

0 comments on commit adef356

Please sign in to comment.