|
|
|
|
@ -268,11 +268,19 @@ void on_useradd_sync_changed(ubl_settings_usergroups_additional_settings_window
|
|
|
|
|
useradd_sync = temp;
|
|
|
|
|
|
|
|
|
|
} else if (!strcmp(parameter,"shutdown@min-max")){
|
|
|
|
|
if (yon_char_is_empty(min_str)||yon_char_is_empty(max_str)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_unite(useradd_sync,!yon_char_is_empty(useradd_sync)?",":"","shutdown@",min_str,"-",max_str,NULL);
|
|
|
|
|
if(!yon_char_is_empty(useradd_sync)) free(useradd_sync);
|
|
|
|
|
useradd_sync = temp;
|
|
|
|
|
|
|
|
|
|
} else if (!strcmp(parameter,"shutdown@uid")){
|
|
|
|
|
if (yon_char_is_empty(min_str)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_unite(useradd_sync,!yon_char_is_empty(useradd_sync)?",":"","shutdown@",min_str,NULL);
|
|
|
|
|
if(!yon_char_is_empty(useradd_sync)) free(useradd_sync);
|
|
|
|
|
useradd_sync = temp;
|
|
|
|
|
@ -318,11 +326,19 @@ void on_useradd_sync_changed(ubl_settings_usergroups_additional_settings_window
|
|
|
|
|
groupadd_sync = temp;
|
|
|
|
|
|
|
|
|
|
} else if (!strcmp(parameter,"shutdown@min-max")){
|
|
|
|
|
if (yon_char_is_empty(min_str)||yon_char_is_empty(max_str)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_unite(groupadd_sync,!yon_char_is_empty(groupadd_sync)?",":"","shutdown@",min_str,"-",max_str,NULL);
|
|
|
|
|
if(!yon_char_is_empty(groupadd_sync)) free(groupadd_sync);
|
|
|
|
|
groupadd_sync = temp;
|
|
|
|
|
|
|
|
|
|
} else if (!strcmp(parameter,"shutdown@gid")){
|
|
|
|
|
if (yon_char_is_empty(min_str)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_unite(groupadd_sync,!yon_char_is_empty(groupadd_sync)?",":"","shutdown@",min_str,NULL);
|
|
|
|
|
if(!yon_char_is_empty(groupadd_sync)) free(groupadd_sync);
|
|
|
|
|
groupadd_sync = temp;
|
|
|
|
|
|