glib r6962 - in branches/glib-2-16: . glib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6962 - in branches/glib-2-16: . glib
- Date: Thu, 29 May 2008 23:06:41 +0000 (UTC)
Author: tml
Date: Thu May 29 23:06:41 2008
New Revision: 6962
URL: http://svn.gnome.org/viewvc/glib?rev=6962&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:
branches/glib-2-16/ChangeLog
branches/glib-2-16/glib/gstdio.c
Modified: branches/glib-2-16/glib/gstdio.c
==============================================================================
--- branches/glib-2-16/glib/gstdio.c (original)
+++ branches/glib-2-16/glib/gstdio.c Thu May 29 23:06:41 2008
@@ -84,7 +84,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]