Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.5.0
-
None
Description
Stress testing the SFTP Subsystem I found protocol errors when file creation failed. This is due to a missing return after the error status is sent.
The patch is simple...
--- SftpSubsystem.java (revision 1086267) +++ SftpSubsystem.java (working copy) @@ -409,6 +409,7 @@ if (((pflags & SSH_FXF_CREAT) != 0)) { if (!file.isWritable()) { sendStatus(id, SSH_FX_FAILURE, "Can not create " + path); + return; } file.create(); }