glib r6961 - in trunk: . glib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6961 - in trunk: . glib
- Date: Thu, 29 May 2008 23:05:35 +0000 (UTC)
Author: tml
Date: Thu May 29 23:05:35 2008
New Revision: 6961
URL: http://svn.gnome.org/viewvc/glib?rev=6961&view=rev
Log:
2008-05-30 Tor Lillqvist <tml novell com>
* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
on Vista. X_OK was just ignored by access() in earlier Microsoft C
libraries. (Which is fine as executability has little meaning on
Windows.) The one on Vista returns an error if X_OK is passed.
Modified:
trunk/ChangeLog
trunk/glib/gstdio.c
Modified: trunk/glib/gstdio.c
==============================================================================
--- trunk/glib/gstdio.c (original)
+++ trunk/glib/gstdio.c Thu May 29 23:05:35 2008
@@ -85,7 +85,7 @@
return -1;
}
- retval = _waccess (wfilename, mode);
+ retval = _waccess (wfilename, mode & ~X_OK);
save_errno = errno;
g_free (wfilename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]