diff options
author | Werner Koch <wk@gnupg.org> | 2010-04-14 13:24:02 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-04-14 13:24:02 +0200 |
commit | 31d7bdfe771853a480203d7d4a661d476d2231a4 (patch) | |
tree | 470c4ed27b06188b1a1a000ce6fb2c41b260b96d /g10/openfile.c | |
parent | 2010-04-13 Marcus Brinkmann <marcus@g10code.de> (diff) | |
download | gnupg2-31d7bdfe771853a480203d7d4a661d476d2231a4.tar.xz gnupg2-31d7bdfe771853a480203d7d4a661d476d2231a4.zip |
Whole lot of changes to support CE.
Diffstat (limited to 'g10/openfile.c')
-rw-r--r-- | g10/openfile.c | 7 |
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 ); - } } |