Home GnuPG
Diffusion GnuPG c434de4d83cc

gpg: Create exported secret files and revocs with mode 700.
c434de4d83ccUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Create exported secret files and revocs with mode 700.

* common/iobuf.c (direct_open): Add arg MODE700.
(iobuf_create): Ditto.
* g10/openfile.c (open_outfile): Add arg RESTRICTEDPERM.  Change call
callers to pass 0 for it.
* g10/revoke.c (gen_desig_revoke, gen_revoke): Here pass true for new
arg.
* g10/export.c (do_export): Pass true for new arg if SECRET is true.

Note that this works only if --output has been used.

Details

Provenance
wernerAuthored on Jun 25 2014, 8:25 PM
Parents
rG35fdfaa0b943: common: Minor code cleanup for a legacy OS.
Branches
Unknown
Tags
Unknown