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;
eebsd-ports-gnome/commit/mail/postfix21?h=gstreamer0.10-removal&id=e00327726279194d7a7922cc8eb5615fd86aab28'>Update to latestdwcjr2002-05-172-2/+2 * Update to 1.1.9dwcjr2002-05-153-12/+12 * Add PGSQL supportdwcjr2002-05-092-2/+13 * Add missing pkg-messagedwcjr2002-05-071-0/+24 * Update to 1.1.8dwcjr2002-05-074-26/+24 * handle batch buildsdwcjr2002-04-212-4/+4 * Update postfix to 1.1.7dwcjr2002-04-024-9/+20 * Add USE_SUBMAKE, where it might be necessary.sobomax2002-03-251-0/+2 * Update to 1.1.5dwcjr2002-03-194-6/+8 * Update postfix to 1.1.4dwcjr2002-02-273-6/+6 * Update to 1.1.3dwcjr2002-02-125-28/+40 * Add missing files to pkg-plistdwcjr2002-02-013-2/+18 * Update to 1.1.2 (yes they are finally using versions)dwcjr2002-01-3122-486/+411 * Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;knu2002-01-291-9/+9 * Set context of diff for patch-aa to 2 lines to allow tls patchingdwcjr2002-01-181-51/+24 * Disable debugger by defaultnectar2002-01-151-19/+91 * Add header/body_check warnings commanddwcjr2001-11-272-0/+25 * Update to pl08 and tls to go with it.dwcjr2001-11-163-6/+6 * Update to pl07dwcjr2001-11-152-2/+2 * Update postfix to 20010228-pl06 and update tls to go with it.dwcjr2001-11-063-7/+6 * Fix path in patchdwcjr2001-10-111-1/+1 * Erase extra parts of install.cfdwcjr2001-09-241-4/+0 * Remove version tags from files that don't need it.dwcjr2001-09-242-2/+0 * Install install.cf to ensure spool is created with correct permissionsdwcjr2001-09-243-1/+18 * Update to pl05dwcjr2001-09-23