diff --git a/src/engine/gnc-filepath-utils.c b/src/engine/gnc-filepath-utils.c index f4535c20a2..16ae04f561 100644 --- a/src/engine/gnc-filepath-utils.c +++ b/src/engine/gnc-filepath-utils.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -77,13 +78,13 @@ MakeHomeDir (void) * and not because its read-protected or other error. * Go ahead and make it. Don't bother much with checking mkdir * for errors; seems pointless. */ - mkdir (path, S_IRWXU); /* perms = S_IRWXU = 0700 */ + g_mkdir (path, S_IRWXU); /* perms = S_IRWXU = 0700 */ } data = g_strconcat (path, "/data", NULL); rc = stat (data, &statbuf); if (rc) - mkdir (data, S_IRWXU); + g_mkdir (data, S_IRWXU); g_free (path); g_free (data); @@ -321,7 +322,7 @@ gnc_validate_directory (const gchar *dirname) if (rc) { switch (errno) { case ENOENT: - rc = mkdir (dirname, S_IRWXU); /* perms = S_IRWXU = 0700 */ + rc = g_mkdir (dirname, S_IRWXU); /* perms = S_IRWXU = 0700 */ if (rc) { g_fprintf(stderr, _("An error occurred while creating the directory:\n"