aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-09-06 18:10:27 +0000
committerWerner Koch <[email protected]>1999-09-06 18:10:27 +0000
commit4a3291c4dba9965649acf7adb59113a615289608 (patch)
tree9d127094b1798fcb23ba59fdaa0d7ad748d8dd68 /g10/tdbio.c
parent*** empty log message *** (diff)
downloadgnupg-4a3291c4dba9965649acf7adb59113a615289608.tar.gz
gnupg-4a3291c4dba9965649acf7adb59113a615289608.zip
See ChangeLog: Mon Sep 6 19:59:08 CEST 1999 Werner Koch
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index 0abfcb1da..b840d723a 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -40,6 +40,11 @@
#include "tdbio.h"
+#ifdef MKDIR_TAKES_ONE_ARG
+# undef mkdir
+# define mkdir(a,b) mkdir(a)
+#endif
+
/****************
* Yes, this is a very simple implementation. We should really
* use a page aligned buffer and read complete pages.
@@ -436,11 +441,7 @@ tdbio_set_dbname( const char *new_dbname, int create )
if( access( fname, F_OK ) ) {
if( strlen(fname) >= 7
&& !strcmp(fname+strlen(fname)-7, "/.gnupg" ) ) {
- #if HAVE_DOSISH_SYSTEM
- if( mkdir( fname ) )
- #else
if( mkdir( fname, S_IRUSR|S_IWUSR|S_IXUSR ) )
- #endif
log_fatal( _("%s: can't create directory: %s\n"),
fname, strerror(errno) );
else if( !opt.quiet )