| Summary: | get -r doesn't work because directories are created without write permissions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | ncdehnel | ||||||
| Component: | sftp | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | enhancement | CC: | dtucker | ||||||
| Priority: | P5 | ||||||||
| Version: | 8.1p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 3217 | ||||||||
| Attachments: |
|
||||||||
|
Description
ncdehnel
2020-10-21 07:54:27 AEDT
This is because the source directories are not writable either, and sftp is maintaining those permissions: sftp> ls -l dr--r----- 1 ECOKITS VSI$GUEST 4096 Oct 26 2016 ALPOPENSOURCE dr--r----- 1 ECOKITS VSI$GUEST 9216 Apr 19 2016 I64OPENSOURCE -r--r--r-- 1 OPENKITS VSI$GUEST 706 Jan 29 2019 README.TXT sftp would need to open the directory with user write, then set the final permission when it's done with the directory. oh, and the directory doesn't have the "x" bit, which is also going to cause some problems on most unix variants. Created attachment 3450 [details]
Ensure directory is writable and searchable for the duration of a recursive transfer
Please try this patch.
Created attachment 3451 [details]
Ensure directory is writable and searchable for the duration of a recursive transfer
fix incorrect error message in previous.
The patch seems to work. It seems to have downloaded all the files. Thank you. The patch (plus the equivalent for the upload path) has been committed and will be in the 8.5 release. Thanks for the report. closing resolved bugs as of 8.6p1 release |