projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use S_ISREG(), since S_IFMT and S_IFREG are apprarently missing on some
[platform/upstream/glib.git]
/
glib
/
gkeyfile.c
diff --git
a/glib/gkeyfile.c
b/glib/gkeyfile.c
index
ffa2fc8
..
397777f
100644
(file)
--- a/
glib/gkeyfile.c
+++ b/
glib/gkeyfile.c
@@
-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,