diff options
author | Werner Koch <[email protected]> | 2017-07-25 10:24:01 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-25 10:43:37 +0000 |
commit | 226f143ca01cf335c7c4e3e94c96fb9d271eccc9 (patch) | |
tree | bf998fd0bb8459a74fe5ca339c4fa114fcd79f36 /common/util.h | |
parent | Revert "w32: Change directory on daemon startup." (diff) | |
download | gnupg-226f143ca01cf335c7c4e3e94c96fb9d271eccc9.tar.gz gnupg-226f143ca01cf335c7c4e3e94c96fb9d271eccc9.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 5b712d3e9..c6d19c64b 100644 --- a/common/util.h +++ b/common/util.h @@ -235,6 +235,7 @@ const char *default_homedir (void); void gnupg_set_homedir (const char *newdir); const char *gnupg_homedir (void); int gnupg_default_homedir_p (void); +const char *gnupg_daemon_rootdir (void); const char *gnupg_socketdir (void); const char *gnupg_sysconfdir (void); const char *gnupg_bindir (void); |