Browse Source

Merge pull request #533 from trapexit/truncate

fix indexing of truncate targets
pull/537/head
trapexit 6 years ago
committed by GitHub
parent
commit
2a8a6b8fe0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/truncate.cpp

2
src/truncate.cpp

@ -62,7 +62,7 @@ _truncate_loop(const vector<const string*> &basepaths,
error = -1; error = -1;
for(size_t i = 0, ei = basepaths.size(); i != ei; i++) for(size_t i = 0, ei = basepaths.size(); i != ei; i++)
{ {
error = _truncate_loop_core(basepaths[0],fusepath,size,error);
error = _truncate_loop_core(basepaths[i],fusepath,size,error);
} }
return -error; return -error;

Loading…
Cancel
Save