diff options
-rw-r--r-- | libappstream-builder/asb-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 38b123a..6615711 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -435,7 +435,8 @@ asb_utils_write_archive (const gchar *filename, tmp = g_ptr_array_index (files, i); filename_full = g_build_filename (path_orig, tmp, NULL); - stat (filename_full, &st); + if (stat (filename_full, &st) != 0) + continue; entry = archive_entry_new (); archive_entry_set_pathname (entry, tmp); archive_entry_set_size (entry, st.st_size); |