|
|
|
@ -1291,6 +1291,9 @@ void on_logrotate_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
}
|
|
|
|
|
int create_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->CreateLogCombo));
|
|
|
|
|
if (create_active){
|
|
|
|
|
if (create_active==1){
|
|
|
|
|
create = "nocreate";
|
|
|
|
|
} else if (create_active==2){
|
|
|
|
|
char *rule = (char*)gtk_entry_get_text(GTK_ENTRY(window->CreateLogEntry));
|
|
|
|
|
char *rule_user = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->CreateLogUserCombo));
|
|
|
|
|
char *rule_group = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->CreateGroupCombo));
|
|
|
|
@ -1310,6 +1313,9 @@ void on_logrotate_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
create = yon_char_unite("create ", rule," ",rule_user," ",rule_group,NULL);
|
|
|
|
|
} else if (create_active==3){
|
|
|
|
|
create = "nocopytruncate";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char *commandline = yon_char_unite(period,
|
|
|
|
|