boklm pushed to branch main at The Tor Project / Applications / RBM

Commits:

2 changed files:

Changes:

  • container
    ... ... @@ -110,7 +110,7 @@ sub copy_file_to {
    110 110
         my $filename = fileparse($src);
    
    111 111
         rcopy($src, "$rootfsdir/$dst/$filename")
    
    112 112
             or exit_error "Failed to copy $src to $rootfsdir/$dst/$filename";
    
    113
    -    return run_chroot($rootfsdir, ['chown', '-R', $owner, $dst]);
    
    113
    +    return system('/usr/sbin/chroot', $rootfsdir, 'chown', '-R', $owner, $dst);
    
    114 114
     }
    
    115 115
     
    
    116 116
     sub copy_file_from {
    

  • lib/RBM.pm
    ... ... @@ -1091,7 +1091,8 @@ sub input_files {
    1091 1091
             my $file_type = -d $fname ? 'directory' : 'file';
    
    1092 1092
             print "Using $file_type $fname\n";
    
    1093 1093
             mkdir dirname("$dest_dir/$name");
    
    1094
    -        push @res_copy, recursive_copy($fname, $name, $dest_dir, $action);
    
    1094
    +        recursive_copy($fname, $name, $dest_dir, $action);
    
    1095
    +        push @res_copy, $name;
    
    1095 1096
         }
    
    1096 1097
         chdir $old_cwd;
    
    1097 1098
         RETURN_RES: