[evolution-data-server] Deprecate camel_mkdir() and remove assertions.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Deprecate camel_mkdir() and remove assertions.
- Date: Fri, 6 Nov 2009 00:55:26 +0000 (UTC)
commit 1fffd0080bb717560d71bf0f06aa5a9ad3589ec6
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Nov 5 19:55:12 2009 -0500
Deprecate camel_mkdir() and remove assertions.
camel/camel-file-utils.c | 3 ---
camel/camel-file-utils.h | 3 +++
camel/providers/imapx/camel-imapx-server.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-file-utils.c b/camel/camel-file-utils.c
index e0b6097..9a5b35d 100644
--- a/camel/camel-file-utils.c
+++ b/camel/camel-file-utils.c
@@ -767,8 +767,5 @@ camel_file_util_savename(const gchar *filename)
gint
camel_mkdir (const gchar *path, mode_t mode)
{
- g_assert(path);
- g_assert (g_path_is_absolute (path[0]));
-
return g_mkdir_with_parents (path, mode);
}
diff --git a/camel/camel-file-utils.h b/camel/camel-file-utils.h
index 8a8ab54..a53c711 100644
--- a/camel/camel-file-utils.h
+++ b/camel/camel-file-utils.h
@@ -69,7 +69,10 @@ gssize camel_read_socket (gint fd, gchar *buf, gsize n);
gssize camel_write_socket (gint fd, const gchar *buf, gsize n);
gchar *camel_file_util_savename(const gchar *filename);
+
+#ifndef CAMEL_DISABLE_DEPRECATED
gint camel_mkdir (const gchar *path, mode_t mode);
+#endif
G_END_DECLS
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index aef1c63..7dad132 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -675,7 +675,7 @@ imapx_get_path_uid(CamelIMAPXServer *is, CamelFolder *folder, const gchar *bit,
bit = strchr(uid, '-') == NULL?"cur":"new";
dir = g_strdup_printf("/tmp/imap-cache/%s/%s", folder->full_name, bit);
- camel_mkdir(dir, 0777);
+ g_mkdir_with_parents(dir, 0777);
path = g_strdup_printf("%s/%s", dir, uid);
g_free(dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]