Changeset 803 for dasscm/trunk


Ignore:
Timestamp:
Nov 18, 2009, 4:28:12 PM (15 years ago)
Author:
joergs
Message:

bugfix: quoting for cp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/dasscm

    r802 r803  
    375375
    376376    #copy( $filename_prod, $filename_repo )
    377     ( my $rc, my @result ) = run_command( "cp -a $filename_prod $filename_repo" );
     377    ( my $rc, my @result ) = run_command( "cp -a \"$filename_prod\" \"$filename_repo\"" );
    378378    if( $rc != 0 ) {
    379379        error( "failed to copy $filename_prod to repository: ", @result );
     
    398398    ) = get_filenames($filename);
    399399
    400     ( my $rc, my @result ) = run_command( "cp -a $filename_repo $filename_prod" );
     400    ( my $rc, my @result ) = run_command( "cp -a \"$filename_repo\" \"$filename_prod\"" );
    401401    if( $rc != 0 ) {
    402402        error( "failed to copy $filename_repo to $filename_prod: ", @result );
Note: See TracChangeset for help on using the changeset viewer.