From: Marcus Brinkmann Date: Sun, 1 Feb 2004 14:34:54 +0000 (+0000) Subject: 2004-02-01 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~488 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e514df02cab8b8b06c0cf79f0e010b632a7de80;p=gpgme.git 2004-02-01 Marcus Brinkmann * rungpg.c (build_argv): Use --no-comment, not --comment "". --- 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;