summaryrefslogtreecommitdiff
path: root/gvfs
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-10-15 23:24:03 +0200
committerTomas Bzatek <tbzatek@redhat.com>2024-10-15 23:24:03 +0200
commiteb1a4c680a18cbe38e75925c4b71a33c20571fd7 (patch)
tree7894c65305b2f49e358036035e00448a9edb6666 /gvfs
parent731ec7fa7938f8f79237fff28c05f3e122ecf488 (diff)
downloadtuxcmd-modules-eb1a4c680a18cbe38e75925c4b71a33c20571fd7.tar.xz
gvfs: Retrieve symlink target through a string getter
Recent glib versions started reporting critical errors when calling g_file_info_get_symlink_target() on GFileInfo that doesn't have that attribute set.
Diffstat (limited to 'gvfs')
-rw-r--r--gvfs/gvfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gvfs/gvfs.c b/gvfs/gvfs.c
index fc29800..0b1aa30 100644
--- a/gvfs/gvfs.c
+++ b/gvfs/gvfs.c
@@ -28,8 +28,8 @@
#include "logutils.h"
-#define VERSION "0.2.2"
-#define BUILD_DATE "2024-01-19"
+#define VERSION "0.2.3"
+#define BUILD_DATE "2024-10-15"
#define DEFAULT_BLOCK_SIZE 0x10000 /* 64kB */
#define CONST_DEFAULT_QUERY_INFO_ATTRIBUTES G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "," \
@@ -595,7 +595,7 @@ g_file_info_to_TVFSItem (GFileInfo *info, GFile *reference_file, gboolean follow
Item->FName = g_strdup (g_file_info_get_name (info));
Item->FDisplayName = g_strdup (g_file_info_get_display_name (info));
}
- Item->sLinkTo = g_strdup (g_file_info_get_symlink_target (info));
+ Item->sLinkTo = g_strdup (g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET));
Item->m_time = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
Item->a_time = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_ACCESS);