Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 203871
Collapse All | Expand All

(-)keychain-2.7.0/keychain.sh (-1 / +3 lines)
Lines 767-772 Link Here
767
gpg_listmissing() {
767
gpg_listmissing() {
768
    unset glm_missing
768
    unset glm_missing
769
769
770
    GPG_TTY=`tty`
771
770
    # Parse $gpgkeys into positional params to preserve spaces in filenames
772
    # Parse $gpgkeys into positional params to preserve spaces in filenames
771
    set -f          # disable globbing
773
    set -f          # disable globbing
772
    glm_IFS="$IFS"  # save current IFS
774
    glm_IFS="$IFS"  # save current IFS
Lines 778-784 Link Here
778
780
779
    for glm_k in "$@"; do
781
    for glm_k in "$@"; do
780
        # Check if this key is known to the agent.  Don't know another way...
782
        # Check if this key is known to the agent.  Don't know another way...
781
        if echo | env -i PATH="$PATH" GPG_AGENT_INFO="$GPG_AGENT_INFO" \
783
        if echo | env -i GPG_TTY="$GPG_TTY" PATH="$PATH" GPG_AGENT_INFO="$GPG_AGENT_INFO" \
782
                gpg --no-options --use-agent --no-tty --sign --local-user "$glm_k" -o- >/dev/null 2>&1; then
784
                gpg --no-options --use-agent --no-tty --sign --local-user "$glm_k" -o- >/dev/null 2>&1; then
783
            # already know about this key
785
            # already know about this key
784
            mesg "Known gpg key: ${CYANN}${glm_k}${OFF}"
786
            mesg "Known gpg key: ${CYANN}${glm_k}${OFF}"

Return to bug 203871