On trash, if rename fails with EXDEV, return G_IO_ERROR_NOT_SUPPORTED
authorAlexander Larsson <alexl@redhat.com>
Thu, 2 Apr 2009 17:01:56 +0000 (19:01 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 2 Apr 2009 17:01:56 +0000 (19:01 +0200)
commit1ce74b0dd34222b201369e5aff53b27182db7b66
treed6f688fafc9541c92e70b424bc4c42a703819228
parent20df6b6e888a1aed596c8c60ed7427708a56a453
On trash, if rename fails with EXDEV, return G_IO_ERROR_NOT_SUPPORTED

Sometimes it seems like the trash dir and the file are on the same
filesystem but the rename fails with EXDEV anyway (can happen
e.g. with bind mounts or multiple mounts of the same device). In this
case we want to return the right error so that apps can fallback to
regular delete.
gio/glocalfile.c