Skip to content

fs/config: Read configuration password from EOFed stdin - fixes #8480#8481

Merged
ncw merged 1 commit intorclone:masterfrom
SamanthaBowen:fix-pam-mount
Apr 9, 2025
Merged

fs/config: Read configuration password from EOFed stdin - fixes #8480#8481
ncw merged 1 commit intorclone:masterfrom
SamanthaBowen:fix-pam-mount

Conversation

@SamanthaBowen
Copy link
Contributor

@SamanthaBowen SamanthaBowen commented Mar 29, 2025

What is the purpose of this change?

This change fixes #8480. When reading the configuration password from stdin, the original behavior of Rclone was to throw an error if the stream hit EOF before encountering a line break even if a password was provided. This change would ignore the EOF as long as the read string is not empty.

Was the change discussed in an issue or in the forum before?

The issue #8480 presents the root cause and mentions proposed change, but no discussion has occurred yet.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

Copy link
Member

@ncw ncw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great - thank you. A nice fix of a Go gotcha. Will merge now.

@ncw ncw merged commit 199f61c into rclone:master Apr 9, 2025
9 checks passed
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.

Rclone mounting fails when done by pam_mount

2 participants