mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
w32: Also change the directory on daemon startup.
* agent/gpg-agent.c (main): Always to the chdir. * dirmngr/dirmngr.c (main): Ditto. * scd/scdaemon.c (main): Ditto. -- Note that only dirmngr did not call the chdir with --no-detach. thus we kept it this way. Tested gpg-agent by checking the properties shown by procexp. Gnupg-bug-id: 2670 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
226f143ca0
commit
0ef50340ef
3 changed files with 14 additions and 11 deletions
|
@ -1351,15 +1351,18 @@ main (int argc, char **argv)
|
|||
log_set_prefix (NULL, oldflags | GPGRT_LOG_RUN_DETACHED);
|
||||
opt.running_detached = 1;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!nodetach )
|
||||
{
|
||||
if (gnupg_chdir (gnupg_daemon_rootdir ()))
|
||||
{
|
||||
log_error ("chdir to '%s' failed: %s\n",
|
||||
gnupg_daemon_rootdir (), strerror (errno));
|
||||
dirmngr_exit (1);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
thread_init ();
|
||||
cert_cache_init (hkp_cacert_filenames);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue