From 7d2cbfbd2cb129e776fa40ff94766da83ad6af36 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 6 Nov 2025 17:04:37 +0600 Subject: [PATCH 1/2] Fixed crash --- source/libublsettings-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libublsettings-file.c b/source/libublsettings-file.c index 6ca2da0..e79f940 100644 --- a/source/libublsettings-file.c +++ b/source/libublsettings-file.c @@ -85,6 +85,7 @@ int yon_file_create_full_path(char *path, mode_t rules){ struct passwd *user = getpwnam(yon_ubl_root_user_get()); } else { FILE *fl = fopen(temp,"w"); + if (!fl) return; fclose(fl); } -- 2.35.1 From 47757ca42b40e0c70ba7a47d24b849b0124bcd00 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 6 Nov 2025 17:05:19 +0600 Subject: [PATCH 2/2] Fixed crash --- source/libublsettings-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libublsettings-file.c b/source/libublsettings-file.c index e79f940..5c9c339 100644 --- a/source/libublsettings-file.c +++ b/source/libublsettings-file.c @@ -85,7 +85,7 @@ int yon_file_create_full_path(char *path, mode_t rules){ struct passwd *user = getpwnam(yon_ubl_root_user_get()); } else { FILE *fl = fopen(temp,"w"); - if (!fl) return; + if (!fl) return 0; fclose(fl); } -- 2.35.1