9095768
From f4713b1094031d7c71b69579d555c0537280f5c5 Mon Sep 17 00:00:00 2001
Josef Stribny a3ec261
From: Josef Stribny <jstribny@redhat.com>
Josef Stribny a3ec261
Date: Tue, 27 May 2014 12:20:35 +0200
391df68
Subject: [PATCH 1/2] Rename option --files-are-digests to --file-is-digest
Josef Stribny a3ec261
Josef Stribny a3ec261
---
391df68
 signd   | 4 ++--
391df68
 signd.8 | 2 +-
391df68
 2 files changed, 3 insertions(+), 3 deletions(-)
Josef Stribny a3ec261
Josef Stribny a3ec261
diff --git a/signd b/signd
9095768
index eeb68f5..3033466 100755
Josef Stribny a3ec261
--- a/signd
Josef Stribny a3ec261
+++ b/signd
9095768
@@ -828,7 +828,7 @@ sub cmd_privsign {
4ce1758
       $classtime = $1;
4ce1758
       $args[0] = substr($args[0], 0, -10)."0000000000";
Josef Stribny a3ec261
     }
9095768
-    ($status, $lout, $lerr) = rungpg('/dev/null', undef, $gpg, "--batch", "--force-v3-sigs", "--files-are-digests", "--allow-non-selfsigned-uid", "--digest-algo=$hashalgo", "--no-verbose", "--no-armor", "--no-secmem-warning", "--ignore-time-conflict", @pinentrymode, "--passphrase-fd=0", "-sbo", "-", $args[0]);
9095768
+    ($status, $lout, $lerr) = rungpg('/dev/null', undef, $gpg, "--batch", "--force-v3-sigs", "--file-is-digest", "--allow-non-selfsigned-uid", "--digest-algo=$hashalgo", "--no-verbose", "--no-armor", "--no-secmem-warning", "--ignore-time-conflict", @pinentrymode, "--passphrase-fd=0", "-sbo", "-", $args[0]);
4ce1758
     $lout = patchclasstime($lout, $classtime) if $classtime && !$status;
4ce1758
     shift @args;
4ce1758
     push @out, $lout;
9095768
@@ -854,7 +854,7 @@ sub cmd_sign {
4ce1758
       $classtime = $1;
4ce1758
       $args[0] = substr($args[0], 0, -10)."0000000000";
Josef Stribny a3ec261
     }
9095768
-    ($status, $lout, $lerr) = rungpg("$phrases/$user", undef, $gpg, "--batch", "--force-v3-sigs", "--files-are-digests", "--digest-algo=$hashalgo", "--no-verbose", "--no-armor", "--no-secmem-warning", "--ignore-time-conflict", @pinentrymode, "--passphrase-fd=0", "-u", $user, "-sbo", "-", $args[0]);
9095768
+    ($status, $lout, $lerr) = rungpg("$phrases/$user", undef, $gpg, "--batch", "--force-v3-sigs", "--file-is-digest", "--digest-algo=$hashalgo", "--no-verbose", "--no-armor", "--no-secmem-warning", "--ignore-time-conflict", @pinentrymode, "--passphrase-fd=0", "-u", $user, "-sbo", "-", $args[0]);
Josef Stribny a3ec261
     $lout = patchclasstime($lout, $classtime) if $classtime && !$status;
4ce1758
     shift @args;
4ce1758
     push @out, $lout;
Josef Stribny a3ec261
diff --git a/signd.8 b/signd.8
4ce1758
index 2ba6bf9..0b95068 100644
Josef Stribny a3ec261
--- a/signd.8
Josef Stribny a3ec261
+++ b/signd.8
Josef Stribny a3ec261
@@ -14,7 +14,7 @@ to another signd. The -f option makes signd fork on startup.
Josef Stribny a3ec261
 
Josef Stribny a3ec261
 signd uses the same configuration used for sign, /etc/sign.conf.
Josef Stribny a3ec261
 It needs a gpg implementation that understands the
Josef Stribny a3ec261
-"--files-are-digests" option to work correctly.
Josef Stribny a3ec261
+"--file-is-digest" option to work correctly.
Josef Stribny a3ec261
 
Josef Stribny a3ec261
 .SH SECURITY
4ce1758
 Unless the allow-unprivileged-ports option is set to true in
Josef Stribny a3ec261
-- 
9095768
2.23.0
Josef Stribny a3ec261