mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Expand a ~ in the ca-cert-file argument.
This commit is contained in:
parent
53476e5413
commit
bc9dd2e5f6
4 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-08-26 Werner Koch <wk@g10code.com>
|
||||
|
||||
* ksutil.c: Include util.h.
|
||||
(parse_ks_options): Use make_filename_try for the ca-cert-file arg.
|
||||
|
||||
2009-07-06 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_hkp.c (main, srv_replace): Minor tweaks to use the
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#else
|
||||
#include "curl-shim.h"
|
||||
#endif
|
||||
#include "util.h"
|
||||
#include "keyserver.h"
|
||||
#include "ksutil.h"
|
||||
|
||||
|
@ -325,7 +326,7 @@ parse_ks_options(char *line,struct ks_options *opt)
|
|||
else if(start[12]=='=')
|
||||
{
|
||||
free(opt->ca_cert_file);
|
||||
opt->ca_cert_file=strdup(&start[13]);
|
||||
opt->ca_cert_file = make_filename_try (start+13, NULL);
|
||||
if(!opt->ca_cert_file)
|
||||
return KEYSERVER_NO_MEMORY;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue