2004-02-01 Marcus Brinkmann <marcus@g10code.de>
* rungpg.c (build_argv): Use --no-comment, not --comment "".
This commit is contained in:
parent
68ab067358
commit
b1b57049f5
@ -1,5 +1,7 @@
|
||||
2004-02-01 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* 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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user