mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
no sym links on win32, no lstat in msvcrt
2002-02-10 Hans Breuer <hans@breuer.org> * glib/gfileutils.c : no sym links on win32, no lstat in msvcrt * tests/makefile.msc.in : added uri-test
This commit is contained in:
@@ -98,10 +98,14 @@ g_file_test (const gchar *filename,
|
||||
|
||||
if (test & G_FILE_TEST_IS_SYMLINK)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
/* no sym links on win32, no lstat in msvcrt */
|
||||
#else
|
||||
struct stat s;
|
||||
|
||||
if ((lstat (filename, &s) == 0) && S_ISLNK (s.st_mode))
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (test & (G_FILE_TEST_IS_REGULAR | G_FILE_TEST_IS_DIR))
|
||||
|
Reference in New Issue
Block a user