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

Do not create sample authorized_keys file at old location #357

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

lmagyar
Copy link
Contributor

@lmagyar lmagyar commented Jun 7, 2024

As I see, the new location is at:

  • /storage/emulated/0/Android/data/org.primftpd/files/.ssh

But the app also reads all the old locations at

  • /storage/emulated/0/.ssh/authorized_key
  • /storage/emulated/0/.ssh/authorized_key.pub

On start it creates a sample file if there is no file. But it creates the sample at one of the old locations also. I don't see why is it necessary. This was comitted this way originally, hasn't changed, but I think we shouldn't create a sample file at an "old" location.

@wolpi
Copy link
Owner

wolpi commented Jun 8, 2024

Yes, makes sense. Probably the creation of sample file would fail anyway as there is no write permission in old location with recent android versions.

@wolpi wolpi added this to the 7.2 milestone Jun 8, 2024
@wolpi wolpi merged commit 04dd943 into wolpi:master Jun 8, 2024
1 check passed
@lmagyar lmagyar deleted the pr-do-not-create-old-ssh-folder branch June 8, 2024 11:47
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.

2 participants