Skip to content

glocalfile: Fix access::can-trash if parent is symlink

Ondrej Holy requested to merge wip/oholy/fix-trash-symlink into master

G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH can be set to a wrong value if its parent dir is a symlink. This is because the find_mountpoint_for() function tries to find mountpoint for a filepath and expands symlinks only in parent dirs. But in this case the path is already parent dir and needs to be expanded first...

Closes: #1522 (closed)

Merge request reports