mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-16 18:32:52 +02:00
Don't use S_ISREG macro (#156728, Kazuki IWAMOTO)
2004-10-28 Ray Strode <rstrode@redhat.com> * glib/gkeyfile.c: Don't use S_ISREG macro (#156728, Kazuki IWAMOTO)
This commit is contained in:
@@ -365,7 +365,7 @@ g_key_file_load_from_fd (GKeyFile *key_file,
|
||||
gchar read_buf[4096];
|
||||
|
||||
fstat (fd, &stat_buf);
|
||||
if (!S_ISREG (stat_buf.st_mode))
|
||||
if ((stat_buf.st_mode & S_IFMT) == S_IFREG)
|
||||
{
|
||||
g_set_error (error, G_KEY_FILE_ERROR,
|
||||
G_KEY_FILE_ERROR_PARSE,
|
||||
|
Reference in New Issue
Block a user