Blob Blame Raw
From 8903fa0f189147c8d53093eceb308309d13d8ba0 Mon Sep 17 00:00:00 2001
From: Josef Stribny <jstribny@redhat.com>
Date: Tue, 27 May 2014 12:20:35 +0200
Subject: [PATCH 1/2] Rename option --files-are-digests to --file-is-digest

---
 signd   | 4 ++--
 signd.8 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/signd b/signd
index 9478a7b..b6615b5 100755
--- a/signd
+++ b/signd
@@ -820,7 +820,7 @@ sub cmd_privsign {
       $classtime = $1;
       $args[0] = substr($args[0], 0, -10)."0000000000";
     }
-    ($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", "--passphrase-fd=0", "-sbo", "-", $args[0]);
+    ($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", "--passphrase-fd=0", "-sbo", "-", $args[0]);
     $lout = patchclasstime($lout, $classtime) if $classtime && !$status;
     shift @args;
     push @out, $lout;
@@ -846,7 +846,7 @@ sub cmd_sign {
       $classtime = $1;
       $args[0] = substr($args[0], 0, -10)."0000000000";
     }
-    ($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", "--passphrase-fd=0", "-u", $user, "-sbo", "-", $args[0]);
+    ($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", "--passphrase-fd=0", "-u", $user, "-sbo", "-", $args[0]);
     $lout = patchclasstime($lout, $classtime) if $classtime && !$status;
     shift @args;
     push @out, $lout;
diff --git a/signd.8 b/signd.8
index 2ba6bf9..0b95068 100644
--- a/signd.8
+++ b/signd.8
@@ -14,7 +14,7 @@ to another signd. The -f option makes signd fork on startup.
 
 signd uses the same configuration used for sign, /etc/sign.conf.
 It needs a gpg implementation that understands the
-"--files-are-digests" option to work correctly.
+"--file-is-digest" option to work correctly.
 
 .SH SECURITY
 Unless the allow-unprivileged-ports option is set to true in
-- 
2.21.0