Trash spec 0.4
Alexander Larsson
alexl at redhat.com
Thu Sep 9 17:23:13 EEST 2004
On Thu, 2004-09-09 at 10:00 -0400, Sean Middleditch wrote:
>
> Perhaps it's best to say that when restoring a file, it may only ever
> be
> restored to the exact same device the trash is on? Following symlinks
> is OK so long as they are not followed off the device.
If you untrash using rename(2) or link(2)+unlink(2) you can't even get
this problem, since they would return EXDEV.
Of course, if you used trashing by copying to $home, then you're hosed.
And your rule would break untrashing files trashed in that way.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alla at lysator.liu.se
He's a deeply religious pirate stage actor in a wheelchair. She's a violent
hip-hop advertising executive fleeing from a Satanic cult. They fight crime!
More information about the xdg
mailing list