From 0d71ef0e4da77eafa7d0a94db5f032ff442afd89 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 20 Nov 2024 09:58:10 +0600 Subject: [PATCH] Warning fixes --- source/libublsettingsui-gtk3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index 5317992..47a627a 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -677,7 +677,7 @@ int yon_ubl_setup_arguments(int argc, char *argv[],config_str *unfound_arguments break; case 'c': char *path = yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",NULL); struct passwd *user = getpwnam(yon_ubl_root_user_get()); - chown(path,user->pw_uid,user->pw_gid); + if (chown(path,user->pw_uid,user->pw_gid)){}; chmod (path,0644); if (system(remove_config_dir_command)){}; break;