Added chmod at removing config #32

Merged
asmeron merged 1 commits from YanTheKaller/libublsettingsui-gtk3:master into master 1 year ago

@ -673,7 +673,8 @@ int yon_ubl_setup_arguments(int argc, char *argv[],config_str *unfound_arguments
if(optarg) if(optarg)
template_config->load_socket_id=atoi(optarg); template_config->load_socket_id=atoi(optarg);
break; break;
case 'c': if (system(remove_config_dir_command)){}; case 'c': chmod (yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",NULL),0777);
asmeron commented 1 year ago
Review

Для чего 777 на файл?
Возможно нужно сменить владельца на текущего пользователя chown ?

Для чего 777 на файл? Возможно нужно сменить владельца на текущего пользователя chown ?
if (system(remove_config_dir_command)){};
break; break;
case 'd': template_config->debug_mode=1; case 'd': template_config->debug_mode=1;
break; break;

Loading…
Cancel
Save