| 192 | } |
| 193 | |
| 194 | int dir_aff_log(const dir_data_t *dir_data, const file_info_t *dir_list) |
| 195 | { |
| 196 | int test_date=0; |
| 197 | struct td_list_head *file_walker = NULL; |
| 198 | if(dir_data!=NULL) |
| 199 | { |
| 200 | log_info("Directory %s\n",dir_data->current_directory); |
| 201 | } |
| 202 | #ifndef DISABLED_FOR_FRAMAC |
| 203 | td_list_for_each(file_walker, &dir_list->list) |
| 204 | { |
| 205 | const file_info_t *current_file=td_list_entry_const(file_walker, const file_info_t, list); |
| 206 | char datestr[80]; |
| 207 | char str[11]; |
| 208 | test_date=set_datestr((char *)&datestr, sizeof(datestr), current_file->td_mtime); |
| 209 | mode_string(current_file->st_mode, str); |
| 210 | if((current_file->status&FILE_STATUS_DELETED)!=0) |
| 211 | log_info("X"); |
| 212 | else |
| 213 | log_info(" "); |
| 214 | log_info("%7lu %s %5u %5u %9llu %s ", |
| 215 | (unsigned long int)current_file->st_ino, |
| 216 | str, |
| 217 | (unsigned int)current_file->st_uid, |
| 218 | (unsigned int)current_file->st_gid, |
| 219 | (long long unsigned int)current_file->st_size, |
| 220 | datestr); |
| 221 | if(dir_data!=NULL && (dir_data->param&FLAG_LIST_PATHNAME)!=0) |
| 222 | { |
| 223 | if(dir_data->current_directory[1]!='\0') |
| 224 | log_info("%s/", dir_data->current_directory); |
| 225 | else |
| 226 | log_info("/"); |
| 227 | } |
| 228 | log_info("%s\n", current_file->name); |
| 229 | } |
| 230 | #endif |
| 231 | return test_date; |
| 232 | } |
| 233 | |
| 234 | void log_list_file(const disk_t *disk, const partition_t *partition, const dir_data_t *dir_data, const file_info_t*list) |
| 235 | { |
no test coverage detected