Changed chmod rules

pull/36/head
parent a9cad1c28a
commit cf0913d1d5

@ -2229,7 +2229,7 @@ int yon_file_save(char *file_path, char *text){
FILE *file = fopen(file_path,"w");
struct passwd *user = getpwnam(yon_ubl_root_user_get());
chown(file_path,user->pw_uid,user->pw_gid);
chmod(file_path,0777);
chmod(file_path,0644);
if (file){
fputs(text,file);
fclose(file);

Loading…
Cancel
Save