summaryrefslogtreecommitdiffstats
path: root/g10/ringedit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-09-06 20:10:27 +0200
committerWerner Koch <wk@gnupg.org>1999-09-06 20:10:27 +0200
commit4a3291c4dba9965649acf7adb59113a615289608 (patch)
tree9d127094b1798fcb23ba59fdaa0d7ad748d8dd68 /g10/ringedit.c
parent*** empty log message *** (diff)
downloadgnupg2-4a3291c4dba9965649acf7adb59113a615289608.tar.xz
gnupg2-4a3291c4dba9965649acf7adb59113a615289608.zip
See ChangeLog: Mon Sep 6 19:59:08 CEST 1999 Werner Koch
Diffstat (limited to 'g10/ringedit.c')
-rw-r--r--g10/ringedit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/g10/ringedit.c b/g10/ringedit.c
index 3db60f245..04d6753de 100644
--- a/g10/ringedit.c
+++ b/g10/ringedit.c
@@ -63,6 +63,12 @@
#include "i18n.h"
+#ifdef MKDIR_TAKES_ONE_ARG
+# undef mkdir
+# define mkdir(a,b) mkdir(a)
+#endif
+
+
struct resource_table_struct {
int used;
int secret; /* this is a secret keyring */
@@ -287,11 +293,7 @@ add_keyblock_resource( const char *url, int force, int secret )
if( access(filename, F_OK) ) {
if( strlen(filename) >= 7
&& !strcmp(filename+strlen(filename)-7, "/.gnupg") ) {
- #ifdef HAVE_DOSISH_SYSTEM
- if( mkdir(filename) )
- #else
if( mkdir(filename, S_IRUSR|S_IWUSR|S_IXUSR) )
- #endif
{
log_error( _("%s: can't create directory: %s\n"),
filename, strerror(errno));