[ 
https://issues.apache.org/jira/browse/FTPSERVER-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655242#action_12655242
 ] 

Sai Pullabhotla commented on FTPSERVER-227:
-------------------------------------------

We don't have to check if the directory being deleted is parent
directory of current working directory, because, then Java would not
let the deletion go through. In other words, java.io.File.delete()
fails on a non-empty directory.

Sai Pullabhotla
Phone: (402) 408-5753
Fax: (402) 408-6861
www.jMethods.com






> RMD command should not delete the current working directory or the any parent 
> of current working directory
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: FTPSERVER-227
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-227
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0-M4
>            Reporter: Sai Pullabhotla
>            Assignee: David Latorre
>             Fix For: 1.0.0-RC1
>
>         Attachments: FTPSERVER-227_patch.text
>
>
> RMD command should not delete the current working directory or the any parent 
> of current working directory. 
> case 1: Let us say, the current working directory is "/wd" then "RMD ." or 
> RMD "/wd" should result in a 5XX reply. 
> case 2: Let us say the working directory is "/wd/subdir", then RMD /wd or 
> "RMD .." should also be restricted and a 5xx reply should be sent. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to