Fixed mkdir rules

pull/48/head
parent f61f532faf
commit 5017877ac0

@ -83,7 +83,7 @@ int yon_file_create_full_path(char *path, mode_t rules){
if (!yon_char_is_empty(temp)){ if (!yon_char_is_empty(temp)){
if (access(temp,F_OK)){ if (access(temp,F_OK)){
if (i!=size-1){ if (i!=size-1){
mkdir(temp,0644); mkdir(temp,755);
struct passwd *user = getpwnam(yon_ubl_root_user_get()); struct passwd *user = getpwnam(yon_ubl_root_user_get());
} else { } else {
FILE *fl = fopen(temp,"w"); FILE *fl = fopen(temp,"w");

Loading…
Cancel
Save