ammachado opened a new pull request, #31199: URL: https://github.com/apache/camel/pull/31199
## Summary [CAMEL-24877](https://issues.apache.org/jira/browse/CAMEL-24877): with `chmodDirectory=2770`, an intermediate directory created by the SFTP producer or consumer can end up `770` while the last one keeps `2770`. This is not a Camel defect, so this PR only documents it: - Camel sends `chmod 2770` for every directory it creates (`SftpOperations.buildDirectoryChunks`). - JSch keeps the bit (`SftpATTRS.setPERMISSIONS` masks with `0xFFF`, octal 07777). - Reproduced with the plain OpenSSH `sftp` client against a real `sshd` (no Camel): when the user is not a member of the group that owns the directory, POSIX `chmod` silently clears setgid and the server still replies with success. The directory created below it then gets the primary group of the user, so it keeps the bit and the result looks inconsistent. Adds a "Directory permissions and the setgid bit" section to the `sftp` and `mina-sftp` component pages, and the regenerated catalog copies. No code change, so no new test. _Claude Code on behalf of ammachado_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
