diff options
Diffstat (limited to 'e-util/e-mktemp.c')
-rw-r--r-- | e-util/e-mktemp.c | 2 |
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; |