Skip to content

qtpass do not strip comments of gpg_id file #625

Closed
@shemeshg

Description

@shemeshg

Describe the bug
A clear and concise description of what the bug is.

in pass we have (line 101)

	local gpg_id
	while read -r gpg_id; do
		gpg_id="${gpg_id%%#*}" # strip comment
		[[ -n $gpg_id ]] || continue
		GPG_RECIPIENT_ARGS+=( "-r" "$gpg_id" )
		GPG_RECIPIENTS+=( "$gpg_id" )
	done < "$current"

however QtPass consider the complete line as UserId and no whatever before the ' # ' only

To Reproduce
Steps to reproduce the behavior:
Create gpg_id entry in the .gpg_id file with remarks

21347213469hdsaklfha # username <username@whatever.com>

Expected behavior
QtPass should not care if entry has ramarks or not.

Desktop (please complete the following information):

  • OS/Distribution: [ Ubuntu 20.04]

  • Latest from git pull

  • macosx

  • Latest from git pull

probably fine tune of issue #452

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions