[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1362: SFTP: should removing a non-empty directory be permitted?
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Dec 2 19:52:22 UTC 2014
#1362: SFTP: should removing a non-empty directory be permitted?
----------------------------------------+-------------------------------
Reporter: davidsarah | Owner:
Type: defect | Status: new
Priority: minor | Milestone: undecided
Component: code-frontend-ftp-sftp | Version: 1.8.2
Resolution: | Keywords: sftp sshfs delete
Launchpad Bug: |
----------------------------------------+-------------------------------
Changes (by warner):
* component: code-frontend => code-frontend-ftp-sftp
Old description:
> 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.
New description:
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.
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1362#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list