Skip to content

Commit

Permalink
wks: Allow access to newly created dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann committed Oct 23, 2021
1 parent 62f838e commit e23e2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/wks-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,13 @@ wks_compute_hu_fname (char **r_fname, const char *addrspec)
fname = make_filename_try (opt.directory, domain, NULL);
if (fname && gnupg_stat (fname, &sb)
&& gpg_err_code_from_syserror () == GPG_ERR_ENOENT)
if (!gnupg_mkdir (fname, "-rwxr--r--") && opt.verbose)
if (!gnupg_mkdir (fname, "-rwxr-xr-x") && opt.verbose)
log_info ("directory '%s' created\n", fname);
xfree (fname);
fname = make_filename_try (opt.directory, domain, "hu", NULL);
if (fname && gnupg_stat (fname, &sb)
&& gpg_err_code_from_syserror () == GPG_ERR_ENOENT)
if (!gnupg_mkdir (fname, "-rwxr--r--") && opt.verbose)
if (!gnupg_mkdir (fname, "-rwxr-xr-x") && opt.verbose)
log_info ("directory '%s' created\n", fname);
xfree (fname);

Expand Down

0 comments on commit e23e2e9

Please sign in to comment.