From 1e514df02cab8b8b06c0cf79f0e010b632a7de80 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 1 Feb 2004 14:34:54 +0000 Subject: [PATCH] 2004-02-01 Marcus Brinkmann * rungpg.c (build_argv): Use --no-comment, not --comment "". --- trunk/gpgme/ChangeLog | 2 ++ trunk/gpgme/rungpg.c | 13 ++----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index 4560a38..d21819a 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,5 +1,7 @@ 2004-02-01 Marcus Brinkmann + * rungpg.c (build_argv): Use --no-comment, not --comment "". + * data-compat.c (gpgme_data_new_from_filepart): Call fseeko if available. * data-stream.c (stream_seek): Likewise. diff --git a/trunk/gpgme/rungpg.c b/trunk/gpgme/rungpg.c index 8885278..5a80f72 100644 --- a/trunk/gpgme/rungpg.c +++ b/trunk/gpgme/rungpg.c @@ -549,7 +549,7 @@ build_argv (engine_gpg_t gpg) argc++; if (!gpg->cmd.used) argc++; /* --batch */ - argc += 2; /* --comment */ + argc += 1; /* --no-comment */ argv = calloc (argc + 1, sizeof *argv); if (!argv) @@ -608,16 +608,7 @@ build_argv (engine_gpg_t gpg) } argc++; } - argv[argc] = strdup ("--comment"); - if (!argv[argc]) - { - int saved_errno = errno; - free (fd_data_map); - free_argv (argv); - return gpg_error_from_errno (saved_errno); - } - argc++; - argv[argc] = strdup (""); + argv[argc] = strdup ("--no-comment"); if (!argv[argc]) { int saved_errno = errno; -- 2.26.2