mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-22 20:26:17 +01:00
Use S_ISREG(), since S_IFMT and S_IFREG are apprarently missing on some
2004-11-15 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since S_IFMT and S_IFREG are apprarently missing on some systems (they are SUS, but not Posix). (#158263)
This commit is contained in:
parent
2691609ffc
commit
035484a411
@ -1,3 +1,9 @@
|
||||
2004-11-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
|
||||
S_IFMT and S_IFREG are apprarently missing on some systems (they
|
||||
are SUS, but not Posix). (#158263)
|
||||
|
||||
2004-11-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
|
||||
S_IFMT and S_IFREG are apprarently missing on some systems (they
|
||||
are SUS, but not Posix). (#158263)
|
||||
|
||||
2004-11-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
|
||||
S_IFMT and S_IFREG are apprarently missing on some systems (they
|
||||
are SUS, but not Posix). (#158263)
|
||||
|
||||
2004-11-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
|
||||
S_IFMT and S_IFREG are apprarently missing on some systems (they
|
||||
are SUS, but not Posix). (#158263)
|
||||
|
||||
2004-11-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-11-15 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
|
||||
S_IFMT and S_IFREG are apprarently missing on some systems (they
|
||||
are SUS, but not Posix). (#158263)
|
||||
|
||||
2004-11-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version.
|
||||
|
@ -359,7 +359,7 @@ g_key_file_load_from_fd (GKeyFile *key_file,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ((stat_buf.st_mode & S_IFMT) != S_IFREG)
|
||||
if (!S_ISREG (stat_buf.st_mode))
|
||||
{
|
||||
g_set_error (error, G_KEY_FILE_ERROR,
|
||||
G_KEY_FILE_ERROR_PARSE,
|
||||
|
Loading…
Reference in New Issue
Block a user