summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-06-29 14:59:48 +0200
committerWerner Koch <wk@gnupg.org>2020-06-29 15:00:04 +0200
commit4f1c257c03667497d642930884b65c4f2245adbd (patch)
treef3452f5049e333ebb57ea2aa83b034fcb665bd6b /sm
parentsm: Try not to output a partial new message after an error. (diff)
downloadgnupg2-4f1c257c03667497d642930884b65c4f2245adbd.tar.xz
gnupg2-4f1c257c03667497d642930884b65c4f2245adbd.zip
sm: Fix regression in Friday's commit
* sm/gpgsm.c (main): Set ERR also for encrypt. -- Fixes-commit: ccbb0cfeefed096a9841b6557d10eef12d55b721 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm')
-rw-r--r--sm/gpgsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index b91667a1e..377cb1191 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -1924,9 +1924,9 @@ main ( int argc, char **argv)
set_binary (stdin);
if (!argc) /* Source is stdin. */
- gpgsm_encrypt (&ctrl, recplist, 0, fp);
+ err = gpgsm_encrypt (&ctrl, recplist, 0, fp);
else if (argc == 1) /* Source is the given file. */
- gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
+ err = gpgsm_encrypt (&ctrl, recplist, open_read (*argv), fp);
else
wrong_args ("--encrypt [datafile]");