secret-only has trailing tab and \n

Bug #585218 reported by EliotBlennerhassett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gkeyring
Fix Released
Medium
Kamil Páral

Bug Description

I found the trailing tab and/or \n cause problems when I did this in a shell script

pass=$(gkeyring.py -k login -tnetwork -p user=$user,server=$server -1)

I tweaked the code so that when the -1 option is used, no tab or carriage return are output after the secret.

(Now -1 is slighly different from --output secret.)

Revision history for this message
EliotBlennerhassett (eliot-blennerhassett) wrote :
Revision history for this message
Kamil Páral (kamil.paral) wrote :

Ok, confirmed. Thank you for your patch, I'll have a look at it soon.

Changed in gkeyring:
assignee: nobody → Kamil Páral (kamil.paral)
importance: Undecided → Medium
status: New → Triaged
milestone: none → 0.2.2
Revision history for this message
Kamil Páral (kamil.paral) wrote :

Fixed in r19 in trunk. I have made a slightly different approach, but it should be more than satisfactory. Could you please test it? Thanks.

Changed in gkeyring:
status: Triaged → Fix Committed
Revision history for this message
EliotBlennerhassett (eliot-blennerhassett) wrote :

Thanks! r19 works fine for me.

Changed in gkeyring:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.