Details
-
Feature
-
Status: Deferred (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
all
Description
Current Situation
- When creating a destination directory using the make_dirs option e.g. with FTP operation send then the directory is created, but without an executable permission bit set for group and other.
- It is not possible to cd into a newly created directory as the executable bit is not set.
Desired Behavior
- In order to be able to cd into the directory the executable bit must be set.
- This feature should be available for FTP and SFTP.
Proposed Changes
- In the "src\java\sos\net\ SOSShttp://FTP.java" module, the code is setting the 484 decimal permissions. Converting to octal gives 0744 (rwxr-
r-). - What is required is the "x" bit for group and other, or alternatively, allow the "umask" setting for the operating account to set the proper default permissions when creating a directory.
public boolean mkdir(String pathname) throws IOException { pathname = resolvePathname(pathname); try{ sftpClient.mkdir(pathname, 484); } catch(Exception e){ reply = e.toString(); return false; } reply = "mkdir OK"; return true; }
Maintainer Notes
- This feature is not intended for immediate implementation*
- Please vote for this issue and let us know your feedback.