diff options
author | Oskar <[email protected]> | 2024-09-12 14:07:51 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-09-12 14:07:51 +0200 |
commit | 6535f2933c85afbec0d0489c4132ff6d15d87a03 (patch) | |
tree | 0f39948d035cd4eb1deff40030fd88613c3b76ba | |
parent | e765803c6a85c872fcbb8f7652040b968c3fdda0 (diff) |
found bug where it removes file but prints that it failed to remove, this might fix it but i was never able to reproduce the behavior before fixing it and after fixing it so i don't knowc++test
-rw-r--r-- | trashsys.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trashsys.cc b/trashsys.cc index 7c73cef..1694d0d 100644 --- a/trashsys.cc +++ b/trashsys.cc @@ -922,7 +922,7 @@ int clear_old_files (int file_age_in_days, struct initial_path_info *ipi) { if(S_ISDIR(s.st_mode)) { cvm_fprintf(v_cvm_fprintf, stdout, "clear_old_files: dir\n"); rm1 = remove(cur_log_path); - rm2 = nftw(cur_trashed_path, remove_nftw, 64, FTW_DEPTH | FTW_PHYS); + rm2 = nftw(cur_trashed_path, remove_nftw, 128, FTW_DEPTH | FTW_PHYS); } else { rm1 = remove(cur_log_path); rm2 = remove(cur_trashed_path); |