diff options
author | Werner Koch <[email protected]> | 2004-12-13 15:49:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-12-13 15:49:56 +0000 |
commit | 801ab885224b7d85aa11cb9f239f33cb420d3159 (patch) | |
tree | 692dfc401226c89d17e8dd3a84fb778fedb97207 /agent/findkey.c | |
parent | Added real code written by Timo Schulz. (diff) | |
download | gnupg-801ab885224b7d85aa11cb9f239f33cb420d3159.tar.gz gnupg-801ab885224b7d85aa11cb9f239f33cb420d3159.zip |
VArious hacks to make it at least build under W32.
* stringhelp.c (w32_strerror) [W32]: New.
* w32-pth.c, w32-pth.h: Added real code written by Timo Schulz.
Not finished, though.
* gpgconf-comp.c <ignore-ocsp-service-url>: Fixed typo.
Diffstat (limited to 'agent/findkey.c')
-rw-r--r-- | agent/findkey.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 9866b54b9..b54528295 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -76,7 +76,11 @@ agent_write_private_key (const unsigned char *grip, The mode parameter to open is what fopen uses. It will be combined with the process' umask automatically. */ fd = open (fname, O_CREAT | O_EXCL | O_RDWR, - S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + S_IRUSR | S_IWUSR +#ifndef HAVE_W32_SYSTEM + | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH +#endif + ); if (fd < 0) fp = 0; else |