From 6535f2933c85afbec0d0489c4132ff6d15d87a03 Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 12 Sep 2024 14:07:51 +0200 Subject: 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 know --- trashsys.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3