From 810a6eb1d632b6067dcc3fbb2f61fa2dd66a166a Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 23 Jan 2017 05:49:15 +0100 Subject: [PATCH] gfileutils: Mention g_dir_make_tmp() in g_mkdtemp*() docs https://bugzilla.gnome.org/show_bug.cgi?id=777493 --- glib/gfileutils.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glib/gfileutils.c b/glib/gfileutils.c index d0967d200..daac6edff 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -1365,6 +1365,10 @@ wrap_g_open (const gchar *filename, * in the GLib file name encoding. Most importantly, on Windows it * should be in UTF-8. * + * If you are going to be creating a temporary directory inside the + * directory returned by g_get_tmp_dir(), you might want to use + * g_dir_make_tmp() instead. + * * Returns: (nullable) (type filename): A pointer to @tmpl, which has been * modified to hold the directory name. In case of errors, %NULL is * returned, and %errno will be set. @@ -1397,6 +1401,10 @@ g_mkdtemp_full (gchar *tmpl, * The string should be in the GLib file name encoding. Most importantly, * on Windows it should be in UTF-8. * + * If you are going to be creating a temporary directory inside the + * directory returned by g_get_tmp_dir(), you might want to use + * g_dir_make_tmp() instead. + * * Returns: (nullable) (type filename): A pointer to @tmpl, which has been * modified to hold the directory name. In case of errors, %NULL is * returned and %errno will be set.