From ffa101872f69fc3836a1e6bc76175d2e9a1fd791 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 4 Nov 2005 09:30:55 +0000 Subject: Eliminate dependency on read/write/stat in apps under _WIN32. --- apps/ca.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'apps/ca.c') diff --git a/apps/ca.c b/apps/ca.c index 210b5e1ff4..9af7bab20b 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -63,7 +63,6 @@ #include #include #include -#include #include #include #include @@ -826,7 +825,6 @@ bad: /* lookup where to write new certificates */ if ((outdir == NULL) && (req)) { - struct stat sb; if ((outdir=NCONF_get_string(conf,section,ENV_NEW_CERTS_DIR)) == NULL) @@ -852,20 +850,12 @@ bad: goto err; } - if (stat(outdir,&sb) != 0) - { - BIO_printf(bio_err,"unable to stat(%s)\n",outdir); - perror(outdir); - goto err; - } -#ifdef S_IFDIR - if (!(sb.st_mode & S_IFDIR)) + if (app_isdir(outdir)<=0) { BIO_printf(bio_err,"%s need to be a directory\n",outdir); perror(outdir); goto err; } -#endif #endif } -- cgit v1.2.3