mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* exec.c [__CYGWIN32__]: Keep cygwin separate from Mingw32;
we don't need it here as it behaves more like a Posix system. * passphrase.c (agent_get_passphrase): Ditto. * tdbio.c (MY_O_BINARY): Need binary mode with Cygwin. * g10.c, gpgv.c (main) [__CYGWIN32__]: Don't get the homedir from the registry.
This commit is contained in:
parent
265b60b089
commit
16e53ae196
6 changed files with 27 additions and 17 deletions
|
@ -164,11 +164,11 @@ main( int argc, char **argv )
|
|||
opt.always_trust = 1;
|
||||
opt.batch = 1;
|
||||
|
||||
#if defined (__MINGW32__) || defined (__CYGWIN32__)
|
||||
#if defined (__MINGW32__)
|
||||
set_homedir (read_w32_registry_string( NULL, "Software\\GNU\\GnuPG", "HomeDir" ));
|
||||
#else
|
||||
#else
|
||||
set_homedir (getenv("GNUPGHOME"));
|
||||
#endif
|
||||
#endif
|
||||
if( !*opt.homedir ) {
|
||||
set_homedir (GNUPG_HOMEDIR);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue