[git] GnuPG - branch, master, updated. gnupg-2.1.15-375-g500e594

by Werner Koch cvs at cvs.gnupg.org
Tue Nov 15 20:22:12 CET 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  500e594c2da530e69a63fc1a40d173458682fa0e (commit)
      from  b47603a0ac24902c5bb000f8ef27cfb99aceeb81 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 500e594c2da530e69a63fc1a40d173458682fa0e
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Nov 15 20:11:40 2016 +0100

    gpgv: New option --enable-special-filenames.
    
    * g10/gpgv.c (oEnableSpecialFilenames): New.
    (opts): Add option --enable-special-filenames.
    (main): Implement that option.
    --
    
    This is the same option we have in gpg.  It allows to use commands
    like
    
     gpgv --enable-special-filenames -- '-&3' - <msg 3<msg.sig
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/doc/gpgv.texi b/doc/gpgv.texi
index 9a74c27..0608a3f 100644
--- a/doc/gpgv.texi
+++ b/doc/gpgv.texi
@@ -128,6 +128,12 @@ supplied multiple times if multiple algorithms should be considered
 weak.  MD5 is always considered weak, and does not need to be listed
 explicitly.
 
+ at item --enable-special-filenames
+ at opindex enable-special-filenames
+This option enables a mode in which filenames of the form
+ at file{-&n}, where n is a non-negative decimal number,
+refer to the file descriptor n and not to a file with that name.
+
 @end table
 
 @mansect return value
diff --git a/g10/gpgv.c b/g10/gpgv.c
index d25b6be..d9f2898 100644
--- a/g10/gpgv.c
+++ b/g10/gpgv.c
@@ -63,6 +63,7 @@ enum cmd_and_opt_values {
   oLoggerFD,
   oHomedir,
   oWeakDigest,
+  oEnableSpecialFilenames,
   aTest
 };
 
@@ -83,6 +84,7 @@ static ARGPARSE_OPTS opts[] = {
   ARGPARSE_s_s (oHomedir, "homedir", "@"),
   ARGPARSE_s_s (oWeakDigest, "weak-digest",
                 N_("|ALGO|reject signatures made with ALGO")),
+  ARGPARSE_s_n (oEnableSpecialFilenames, "enable-special-filenames", "@"),
 
   ARGPARSE_end ()
 };
@@ -201,6 +203,9 @@ main( int argc, char **argv )
           additional_weak_digest(pargs.r.ret_str);
           break;
         case oIgnoreTimeConflict: opt.ignore_time_conflict = 1; break;
+        case oEnableSpecialFilenames:
+          iobuf_enable_special_filenames (1);
+          break;
         default : pargs.err = ARGPARSE_PRINT_ERROR; break;
 	}
     }

-----------------------------------------------------------------------

Summary of changes:
 doc/gpgv.texi | 6 ++++++
 g10/gpgv.c    | 5 +++++
 2 files changed, 11 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list