|
|
|
@ -2614,7 +2614,16 @@ void on_log_edit(GtkWidget *self,main_window *widgets){
|
|
|
|
|
temp_paths=NULL;
|
|
|
|
|
for (int i=0;i<sz;i++){
|
|
|
|
|
if (!access(parsed_paths[i],F_OK))
|
|
|
|
|
yon_char_unite(temp_paths ? yon_char_append(temp_paths," ") : "",parsed_paths[i],NULL);
|
|
|
|
|
temp_paths = yon_char_unite(temp_paths ? yon_char_append(temp_paths," ") : "",parsed_paths[i],NULL);
|
|
|
|
|
else {
|
|
|
|
|
int mask_size=0;
|
|
|
|
|
char *mask = yon_char_new(parsed_paths[i]);
|
|
|
|
|
char *path_mask = yon_char_divide(mask,yon_char_find_last(mask,'/'));
|
|
|
|
|
config_str mask_found = yon_dir_get_by_mask(path_mask,mask,&mask_size);
|
|
|
|
|
for (int l=0;l<mask_size;l++){
|
|
|
|
|
temp_paths = yon_char_unite(temp_paths ? yon_char_append(temp_paths," ") : "",path_mask,"/",mask_found[l],NULL);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!yon_char_is_empty(temp_paths)){
|
|
|
|
|
config_str logsize = yon_config_load(logrotate_size_command(temp_paths),&sz);
|
|
|
|
|