|
|
|
|
@ -1056,7 +1056,7 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->CommandBeforeEntry),value);
|
|
|
|
|
i++;
|
|
|
|
|
}else if (strstr(parsed[i],"postrotate")){
|
|
|
|
|
char *value = strstr(parsed[i]," ")+1;
|
|
|
|
|
char *value = parsed[i+1];
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->CommandAfterEntry),value);
|
|
|
|
|
i++;
|
|
|
|
|
// }else if (!strcmp(parsed[i],"preremove")){
|
|
|
|
|
@ -1913,6 +1913,7 @@ main_window *setup_window(){
|
|
|
|
|
config_str file = yon_file_open(yon_char_append(logrotate_config_path,dirs[i]),&filesize);
|
|
|
|
|
for (int j=0;j<filesize;j++){
|
|
|
|
|
file[j]=yon_char_divide_search(file[j],"\n",-1);
|
|
|
|
|
file[j]=yon_char_replace(file[j]," ","");
|
|
|
|
|
if (file[j][0]!='#'&&bracket_found==0&&strcmp(file[j],"")){
|
|
|
|
|
if (strstr(file[j],"{")) {
|
|
|
|
|
bracket_found = 1;
|
|
|
|
|
|