mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Mask out X_OK to avoid problem on Vista. X_OK was just ignored by access()
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. svn path=/branches/glib-2-16/; revision=6962
This commit is contained in:
parent
1077f0a1fb
commit
663fe6839f
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
2008-05-29 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
|
||||
|
@ -84,7 +84,7 @@ g_access (const gchar *filename,
|
||||
return -1;
|
||||
}
|
||||
|
||||
retval = _waccess (wfilename, mode);
|
||||
retval = _waccess (wfilename, mode & ~X_OK);
|
||||
save_errno = errno;
|
||||
|
||||
g_free (wfilename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user