#1050 closed defect

open with SSH_FXF_TRUNC without SSH_FXF_CREAT violates SFTP spec, but everyone does it anyway — at Initial Version

Reported by: bj0 Owned by: nobody
Priority: major Milestone: 1.7.0
Component: code-frontend-ftp-sftp Version: 1.6.1
Keywords: sftp standards sshfs Cc:
Launchpad Bug:

Description

It apparrently is against the SFTP spec (but not the POSIX) to open a file with SSH_FXF_TRUNC without including SSH_FXF_CREAT.

Programs like OpenSSH server and sshfs ignore this little detail, though, and programs like "cp" fail if it is followed.

workaround: SFTP frontend should accept FXF_WRITE | FXF_TRUNC.

Change History (0)

Note: See TracTickets for help on using tickets.