[issue90] gpgconf wrongly escapes arguments

David Faure aegypten-issues at intevation.de
Fri Feb 20 22:14:01 CET 2004


New submission from David Faure <faure at kde.org>:

gpgconf isn't supposed to escape the string value given to it, since (as 
README.gpgconf says), the caller is supposed to do that. 
 
This makes it impossible to set a string value containing a ':'. 
Demonstration below, trying to set the string "a:b". 
 
>echo 'log-file:"a%3ab' | gpgconf --change-options dirmngr 
>gpgconf --list-options dirmngr | grep log-file 
log-file:0:1:write logs to FILE:4:1:FILE::"a%253ab 
 
The % in %3a was escaped wrongly (into %25). 
 
 
If I try passing a litteral ':' instead: 
>echo 'log-file:"a:b' | gpgconf --change-options dirmngr 
>gpgconf --list-options dirmngr | grep log-file 
log-file:0:1:write logs to FILE:4:1:FILE::"a 
 
The value was truncated at ':', so this doesn't work either. 
I think the right fix is to take the given argument as is, i.e. to store 
%3a when passing %3a on the command line.

----------
assignedto: werner
messages: 373
nosy: david, marcus, werner
priority: bug
status: unread
title: gpgconf wrongly escapes arguments
topic: DirMngr, gpg
______________________________________________________
Aegypten issue tracker <aegypten-issues at intevation.de>
<https://intevation.de/roundup/aegypten/issue90>
______________________________________________________



More information about the Gpa-dev mailing list