Browse Source
Merge pull request #533 from trapexit/truncate
fix indexing of truncate targets
pull/537/head
trapexit
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/truncate.cpp
|
|
@ -62,7 +62,7 @@ _truncate_loop(const vector<const string*> &basepaths, |
|
|
|
error = -1; |
|
|
|
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; |
|
|
|