mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +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:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-28 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
|
||||||
|
Kazuki IWAMOTO)
|
||||||
|
|
||||||
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-28 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
|
||||||
|
Kazuki IWAMOTO)
|
||||||
|
|
||||||
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-28 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
|
||||||
|
Kazuki IWAMOTO)
|
||||||
|
|
||||||
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-28 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
|
||||||
|
Kazuki IWAMOTO)
|
||||||
|
|
||||||
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-28 Ray Strode <rstrode@redhat.com>
|
||||||
|
|
||||||
|
* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
|
||||||
|
Kazuki IWAMOTO)
|
||||||
|
|
||||||
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
2004-10-28 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
* glib/gstdio.c: Include galias.h before glib.h (#156697,
|
||||||
|
@@ -365,7 +365,7 @@ g_key_file_load_from_fd (GKeyFile *key_file,
|
|||||||
gchar read_buf[4096];
|
gchar read_buf[4096];
|
||||||
|
|
||||||
fstat (fd, &stat_buf);
|
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_set_error (error, G_KEY_FILE_ERROR,
|
||||||
G_KEY_FILE_ERROR_PARSE,
|
G_KEY_FILE_ERROR_PARSE,
|
||||||
|
Reference in New Issue
Block a user