common: New functions gnupg_daemon_rootdir and gnupg_chdir.
authorWerner Koch <wk@gnupg.org>
Tue, 25 Jul 2017 10:24:01 +0000 (12:24 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 25 Jul 2017 10:43:37 +0000 (12:43 +0200)
commit226f143ca01cf335c7c4e3e94c96fb9d271eccc9
treebf998fd0bb8459a74fe5ca339c4fa114fcd79f36
parentf2d2648a4deb205c26ac869c857c000a95d3ff0c
common: New functions gnupg_daemon_rootdir and gnupg_chdir.

* common/sysutils.c (gnupg_chdir): New.
* common/homedir.c (gnupg_daemon_rootdir): New.
* agent/gpg-agent.c (main): Use these functions instead chdir("/").
* dirmngr/dirmngr.c (main): Ditto.
* scd/scdaemon.c (main): Ditto.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
common/homedir.c
common/sysutils.c
common/sysutils.h
common/util.h
dirmngr/dirmngr.c
scd/scdaemon.c