summaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-04-14 13:24:02 +0200
committerWerner Koch <wk@gnupg.org>2010-04-14 13:24:02 +0200
commit31d7bdfe771853a480203d7d4a661d476d2231a4 (patch)
tree470c4ed27b06188b1a1a000ce6fb2c41b260b96d /g10/openfile.c
parent2010-04-13 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-31d7bdfe771853a480203d7d4a661d476d2231a4.tar.xz
gnupg2-31d7bdfe771853a480203d7d4a661d476d2231a4.zip
Whole lot of changes to support CE.
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index eb12f0482..101a0f1e4 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -56,10 +56,6 @@
#define CMP_FILENAME(a,b) strcmp( (a), (b) )
#endif
-#ifdef MKDIR_TAKES_ONE_ARG
-#undef mkdir
-#define mkdir(a,b) mkdir(a)
-#endif
/* FIXME: Implement opt.interactive. */
@@ -444,12 +440,11 @@ try_make_homedir (const char *fname)
#endif
)
{
- if ( mkdir (fname, S_IRUSR|S_IWUSR|S_IXUSR) )
+ if (gnupg_mkdir (fname, "-rwx"))
log_fatal ( _("can't create directory `%s': %s\n"),
fname, strerror(errno) );
else if (!opt.quiet )
log_info ( _("directory `%s' created\n"), fname );
copy_options_file( fname );
-
}
}