|
|
|
|
@ -664,6 +664,20 @@ int yon_char_parsed_check_exist(char **parameters, int size, char *param){
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int yon_char_parsed_strstr(char **parameters, int size, char *param){
|
|
|
|
|
if (parameters){
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
if (parameters[i]){
|
|
|
|
|
if (!strstr(parameters[i],param))
|
|
|
|
|
return i;
|
|
|
|
|
} else return -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int yon_char_parsed_check_repeats(char **parameters, int size, int *first_overlap, int *second_overlap){
|
|
|
|
|
if (parameters){
|
|
|
|
|
*first_overlap=0;
|
|
|
|
|
@ -2271,13 +2285,13 @@ int yon_file_create_full_path(char *path, int rules){
|
|
|
|
|
if (!yon_char_is_empty(temp)){
|
|
|
|
|
if (access(temp,F_OK)){
|
|
|
|
|
if (i!=size-1){
|
|
|
|
|
mkdir(temp,0555);
|
|
|
|
|
mkdir(temp,0755);
|
|
|
|
|
} else {
|
|
|
|
|
FILE *fl = fopen(temp,"w");
|
|
|
|
|
int chmod_success = chmod(temp,rules);
|
|
|
|
|
}
|
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
|
int chown_success = chown(temp,user->pw_uid,user->pw_gid);
|
|
|
|
|
int chmod_success = chmod(temp,rules);
|
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
|
int chown_success = chown(temp,user->pw_uid,user->pw_gid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!yon_char_is_empty(current)) free(current);
|
|
|
|
|
|