Skip to content

Commit

Permalink
fix make check
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jan 10, 2024
1 parent 20c89b3 commit 620e0ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion libbaul-private/baul-directory-async.c
Original file line number Diff line number Diff line change
Expand Up @@ -3832,7 +3832,8 @@ static gboolean is_trusted_system_desktop_file (GFile *file)
return FALSE;
}

target = g_file_info_get_symlink_target (info);
target = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);

if (!target) {
goto done;
}
Expand Down
6 changes: 4 additions & 2 deletions libbaul-private/baul-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,8 @@ update_info_internal (BaulFile *file,
}
file->details->size_on_disk = size_on_disk;

sort_order = g_file_info_get_sort_order (info);
sort_order = g_file_info_get_attribute_int32 (info, G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER);

if (file->details->sort_order != sort_order) {
changed = TRUE;
}
Expand Down Expand Up @@ -2451,7 +2452,8 @@ update_info_internal (BaulFile *file,
file->details->thumbnailing_failed = thumbnailing_failed;
}

symlink_name = g_file_info_get_symlink_target (info);
symlink_name = g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);

if (eel_strcmp (file->details->symlink_name, symlink_name) != 0) {
changed = TRUE;
g_free (file->details->symlink_name);
Expand Down

0 comments on commit 620e0ba

Please sign in to comment.