mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-22 18:22:11 +01:00
glocalfileinfo: Use stat results only if stat succeeded
This commit is contained in:
parent
41faeeab7b
commit
312f42ee34
@ -2058,11 +2058,14 @@ _g_local_file_info_get (const char *basename,
|
||||
(attributes & FILE_ATTRIBUTE_SYSTEM));
|
||||
}
|
||||
|
||||
if (stat_ok)
|
||||
{
|
||||
_g_file_info_set_attribute_boolean_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_IS_MOUNTPOINT,
|
||||
(statbuf.reparse_tag == IO_REPARSE_TAG_MOUNT_POINT));
|
||||
|
||||
if (statbuf.reparse_tag != 0)
|
||||
_g_file_info_set_attribute_uint32_by_id (info, G_FILE_ATTRIBUTE_ID_DOS_REPARSE_POINT_TAG, statbuf.reparse_tag);
|
||||
}
|
||||
#endif
|
||||
|
||||
symlink_target = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user