From b1b57049f5b9ce5fd6aa7ca8851307e2f6a1f632 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 "". --- gpgme/ChangeLog | 2 ++ gpgme/rungpg.c | 13 ++----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 4560a38..d21819a 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/rungpg.c b/gpgme/rungpg.c index 8885278..5a80f72 100644 --- a/gpgme/rungpg.c +++ b/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