aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-03-12 15:00:55 +0000
committerWerner Koch <[email protected]>2024-03-12 15:00:55 +0000
commit4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf (patch)
tree683140a4a33b0f3accf5b1f2455274d251581970 /tools/gpg-card.c
parentgpg: Fix a possible segv due to an uninitialized gcrypt context. (diff)
parentPost release updates (diff)
downloadgnupg-4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf.tar.gz
gnupg-4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf.zip
Merge branch 'STABLE-BRANCH-2-4'
-- Resolved conflicts: NEWS common/exechelp-w32.c configure.ac
Diffstat (limited to 'tools/gpg-card.c')
-rw-r--r--tools/gpg-card.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c
index 056cdca66..8c9a26090 100644
--- a/tools/gpg-card.c
+++ b/tools/gpg-card.c
@@ -220,9 +220,15 @@ parse_arguments (gpgrt_argparse_t *pargs, gpgrt_opt_t *popts)
}
break;
- case oGpgProgram: opt.gpg_program = pargs->r.ret_str; break;
- case oGpgsmProgram: opt.gpgsm_program = pargs->r.ret_str; break;
- case oAgentProgram: opt.agent_program = pargs->r.ret_str; break;
+ case oGpgProgram:
+ opt.gpg_program = make_filename (pargs->r.ret_str, NULL);
+ break;
+ case oGpgsmProgram:
+ opt.gpgsm_program = make_filename (pargs->r.ret_str, NULL);
+ break;
+ case oAgentProgram:
+ opt.agent_program = make_filename (pargs->r.ret_str, NULL);
+ break;
case oStatusFD:
gnupg_set_status_fd (translate_sys2libc_fd_int (pargs->r.ret_int, 1));
@@ -402,7 +408,7 @@ nullnone (const char *s)
* success returns 0 and stores the number of bytes read at R_BUFLEN
* and the address of a newly allocated buffer at R_BUFFER. A
* complementary nul byte is always appended to the data but not
- * counted; this allows to pass NULL for R-BUFFER and consider the
+ * counted; this allows one to pass NULL for R-BUFFER and consider the
* returned data as a string. */
static gpg_error_t
get_data_from_file (const char *fname, char **r_buffer, size_t *r_buflen)