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:
Ray Strode 2004-10-28 18:42:46 +00:00 committed by Ray Strode
parent 9e8ebbbdfb
commit 6b931891bc
6 changed files with 26 additions and 1 deletions

View File

@ -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>
* glib/gstdio.c: Include galias.h before glib.h (#156697,

View File

@ -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>
* glib/gstdio.c: Include galias.h before glib.h (#156697,

View File

@ -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>
* glib/gstdio.c: Include galias.h before glib.h (#156697,

View File

@ -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>
* glib/gstdio.c: Include galias.h before glib.h (#156697,

View File

@ -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>
* glib/gstdio.c: Include galias.h before glib.h (#156697,

View File

@ -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,