blob: 7f13f82626428ef00a486598907e87c12dee89dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ae,v 1.1 2003/02/15 13:30:50 jmmv Exp $
--- libgnome/gnome-config.c.orig 2002-07-12 14:44:10.000000000 +0200
+++ libgnome/gnome-config.c
@@ -105,6 +105,8 @@ static TProfile *Current = 0;
*/
static TProfile *Base = 0;
+int libgnome_mkdir(const char *path, mode_t mode);
+
static char *
config_concat_dir_and_key (const char *dir, const char *key)
{
@@ -714,7 +716,7 @@ check_path(char *path, mode_t newmode)
} else {
/*we couldn't stat it .. let's try making the
directory*/
- if(mkdir(newpath->str,newmode)!=0) {
+ if(libgnome_mkdir(newpath->str,newmode)!=0) {
/*error, return false*/
g_string_free(newpath,TRUE);
return FALSE;
|