aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-09-06 07:37:01 +0800
committerDan Winship <danw@src.gnome.org>2001-09-06 07:37:01 +0800
commitab8885da53da6573d62789f07f6ebc4d75839e3c (patch)
treef176b6177d1f2f0c0557e75841e61c670b06f584 /e-util
parent35f6d9602967f597fd1a4ebade8fb411db836398 (diff)
downloadgsoc2013-evolution-ab8885da53da6573d62789f07f6ebc4d75839e3c.tar.gz
gsoc2013-evolution-ab8885da53da6573d62789f07f6ebc4d75839e3c.tar.zst
gsoc2013-evolution-ab8885da53da6573d62789f07f6ebc4d75839e3c.zip
Fix the check for the case when mkdir() returns EEXIST to check S_ISDIR on
* e-mktemp.c (get_path): Fix the check for the case when mkdir() returns EEXIST to check S_ISDIR on the right structure component. Fixes bug #8775. svn path=/trunk/; revision=12644
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-mktemp.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 6672c30310..8c08abcd69 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-05 Dan Winship <danw@ximian.com>
+
+ * e-mktemp.c (get_path): Fix the check for the case when mkdir()
+ returns EEXIST to check S_ISDIR on the right structure component.
+ Fixes bug #8775.
+
2001-08-31 Federico Mena Quintero <federico@ximian.com>
* e-time-utils.c (e_time_parse_date_and_time): Added format for
diff --git a/e-util/e-mktemp.c b/e-util/e-mktemp.c
index e1211da15b..e532498c1d 100644
--- a/e-util/e-mktemp.c
+++ b/e-util/e-mktemp.c
@@ -82,7 +82,7 @@ get_path (gboolean make)
}
/* make sure this is a directory and belongs to us... */
- if (!S_ISDIR (st.st_dev) || st.st_uid != getuid ()) {
+ if (!S_ISDIR (st.st_mode) || st.st_uid != getuid ()) {
/* eek! this is bad... */
g_string_free (path, TRUE);
return NULL;