Home GnuPG
Diffusion GnuPG b972ec396689

sm: Create homedir and lock empty keybox creation.
b972ec396689Unpublished

Unpublished Commit · Learn More

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

Description

sm: Create homedir and lock empty keybox creation.

* sm/gpgsm.h (opt): Add field "no_homedir_creation".
* sm/gpgsm.c (main): Set it if --no-options is used.
* sm/keydb.c: Include fcntl.h.
(try_make_homedir): New.  Similar to the one from g10/openfile.c
(maybe_create_keybox): New.  Similar to the one from g10/keydb.c.
(keydb_add_resource): Replace some code by maybe_create_keybox.

Details

Provenance
wernerAuthored on Aug 12 2014, 10:36 AM
Parents
rG90397c934341: Remove trailing white space from two files.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGb972ec396689: sm: Create homedir and lock empty keybox creation. (authored by Werner Koch <wk@gnupg.org>).Aug 12 2014, 4:08 PM