Skip to content

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.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
@Jakuje Jakuje force-pushed the sftp-home-directory branch from 233414b to c2b9741 Compare March 26, 2024 14:07
@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