[Pkg-gnupg-commit] [gnupg2] 104/180: g10,sm: Spell out --passwd.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit c1c35fb887061de05661f3411eda97546e1a52d7
Author: Justus Winter <justus at g10code.com>
Date:   Tue Dec 13 17:49:47 2016 +0100

    g10,sm: Spell out --passwd.
    
    * g10/gpg.c (opts): Spell out option.
    * sm/gpgsm.c (opts): Likewise.
    * doc/gpg.texi: Update accordingly.
    * doc/gpgsm.texi: Likewise.
    
    GnuPG-bug-id: 2700
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 doc/gpg.texi   | 4 ++--
 doc/gpgsm.texi | 4 ++--
 g10/gpg.c      | 5 +++--
 sm/gpgsm.c     | 5 +++--
 4 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/doc/gpg.texi b/doc/gpg.texi
index 3b5167d..c5068b9 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -1073,8 +1073,8 @@ you want to specify a different revocation reason, or to supply
 supplementary revocation text, you should use the interactive
 sub-command @code{revuid} of @option{--edit-key}.
 
- at item --passwd @var{user_id}
- at opindex passwd
+ at item --change-passphrase @var{user_id}
+ at opindex change-passphrase
 Change the passphrase of the secret key belonging to the certificate
 specified as @var{user_id}.  This is a shortcut for the sub-command
 @code{passwd} of the edit key menu.
diff --git a/doc/gpgsm.texi b/doc/gpgsm.texi
index 2e53a56..d7d3770 100644
--- a/doc/gpgsm.texi
+++ b/doc/gpgsm.texi
@@ -283,8 +283,8 @@ Read information about the private keys from the smartcard and import
 the certificates from there.  This command utilizes the @command{gpg-agent}
 and in turn the @command{scdaemon}.
 
- at item --passwd @var{user_id}
- at opindex passwd
+ at item --change-passphrase @var{user_id}
+ at opindex change-passphrase
 Change the passphrase of the private key belonging to the certificate
 specified as @var{user_id}.  Note, that changing the passphrase/PIN of a
 smartcard is not yet supported.
diff --git a/g10/gpg.c b/g10/gpg.c
index a586388..6003d04 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -474,7 +474,8 @@ static ARGPARSE_OPTS opts[] = {
   ARGPARSE_c (aLSignKey, "lsign-key"  ,N_("sign a key locally")),
   ARGPARSE_c (aEditKey,  "edit-key"   ,N_("sign or edit a key")),
   ARGPARSE_c (aEditKey,  "key-edit"   ,"@"),
-  ARGPARSE_c (aPasswd,   "passwd",     N_("change a passphrase")),
+  ARGPARSE_c (aPasswd,   "change-passphrase", N_("change a passphrase")),
+  ARGPARSE_c (aPasswd,   "passwd", "@"),
   ARGPARSE_c (aDesigRevoke, "desig-revoke","@" ),
   ARGPARSE_c (aExport, "export"           , N_("export keys") ),
   ARGPARSE_c (aSendKeys, "send-keys"     , N_("export keys to a keyserver") ),
@@ -4243,7 +4244,7 @@ main (int argc, char **argv)
 
       case aPasswd:
         if (argc != 1)
-          wrong_args (_("--passwd <user-id>"));
+          wrong_args (_("--change-passphrase <user-id>"));
         else
           {
             username = make_username (fname);
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index a2ec441..79508e6 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -231,7 +231,8 @@ static ARGPARSE_OPTS opts[] = {
               N_("pass a command to the dirmngr")),
   ARGPARSE_c (aCallProtectTool, "call-protect-tool",
               N_("invoke gpg-protect-tool")),
-  ARGPARSE_c (aPasswd, "passwd", N_("change a passphrase")),
+  ARGPARSE_c (aPasswd, "change-passphrase", N_("change a passphrase")),
+  ARGPARSE_c (aPasswd, "passwd", "@"),
   ARGPARSE_c (aGPGConfList, "gpgconf-list", "@"),
   ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@"),
 
@@ -1995,7 +1996,7 @@ main ( int argc, char **argv)
 
     case aPasswd:
       if (argc != 1)
-        wrong_args ("--passwd <key-Id>");
+        wrong_args ("--change-passphrase <key-Id>");
       else
         {
           int rc;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list