Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftp-server: Fix home-directory extension to match the specification #477

Closed
wants to merge 1 commit into from

Conversation

Jakuje
Copy link
Contributor

@Jakuje Jakuje commented Mar 26, 2024

The home-directory extension does not match the specification in PROTOCOL. Right now, it:

  • does not accept the empty string username
  • It returns always the current user home directory

The proposed change updates the extension to catch both of the corner cases.

sftp-server.c Outdated Show resolved Hide resolved
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
@Jakuje
Copy link
Contributor Author

Jakuje commented Apr 16, 2024

@djmdjm any chance somebody would be able to look into this?

@djmdjm
Copy link
Contributor

djmdjm commented Apr 30, 2024

Thanks, committed upstream and synced back as 385ecb3

@djmdjm djmdjm closed this Apr 30, 2024
@rmsh1216
Copy link
Contributor

The home-directory extension does not match the specification in PROTOCOL. Right now, it:

  • does not accept the empty string username
  • It returns always the current user home directory

The proposed change updates the extension to catch both of the corner cases.

The empty string username means that the name of the user is empty? How can I create an empty string username?

@Jakuje
Copy link
Contributor Author

Jakuje commented May 31, 2024

The empty string username means that the name of the user is empty? How can I create an empty string username?

No, it means the string in the SFTP message that represents username is empty. For reference, see the SFTP protocol extension implemented by OpenSSH in PROTOCOL:

https://github.com/openssh/openssh-portable/blob/master/PROTOCOL#L697

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants