SFTP: should removing a non-empty directory be permitted? #1362

Open
opened 2011-02-17 01:49:29 +00:00 by davidsarah · 0 comments
davidsarah commented 2011-02-17 01:49:29 +00:00
Owner

The SFTP frontend currently allows deleting a non-empty directory. This is a well-defined and useful operation on a Tahoe filesystem, but it would not be allowed on a POSIX filesystem.

It's unclear whether applications using SFTP via sshfs might rely on attempts to delete a non-empty directory being denied. In principle they could, but I've no evidence that this is common.

TODO: check whether rm [-r] [-f] on platforms that support sshfs explicitly checks that a directory is empty before trying to delete it.

The SFTP frontend currently allows deleting a non-empty directory. This is a well-defined and useful operation on a Tahoe filesystem, but it would not be allowed on a POSIX filesystem. It's unclear whether applications using SFTP via sshfs might rely on attempts to delete a non-empty directory being denied. In principle they could, but I've no evidence that this is common. TODO: check whether `rm [-r] [-f]` on platforms that support sshfs explicitly checks that a directory is empty before trying to delete it.
tahoe-lafs added the
code-frontend
minor
defect
1.8.2
labels 2011-02-17 01:49:29 +00:00
tahoe-lafs added this to the undecided milestone 2011-02-17 01:49:29 +00:00
tahoe-lafs added
code-frontend-ftp-sftp
and removed
code-frontend
labels 2014-12-02 19:52:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#1362
No description provided.