aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-mktemp.c
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/e-mktemp.c
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/e-mktemp.c')
-rw-r--r--e-util/e-mktemp.c2
1 files changed, 1 insertions, 1 deletions
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;