Message ID | e054ffda51.Jo@hobbes.bass-software.com |
---|---|
State | New |
Headers | show |
>>>>> "John" == John Tytgat <John.Tytgat@aaug.net> writes:
John> 2011-05-29 John Tytgat <John.Tytgat@aaug.net>
John> * files.c (read_file_guts): Add test on non-zero value of S_ISREG.
It seems reasonable enough to me. I am checking it in.
Out of curiosity, do you know of a platform where this is an issue?
Tom
Index: libcpp/files.c =================================================================== --- libcpp/files.c (revision 174393) +++ libcpp/files.c (working copy) @@ -595,7 +595,7 @@ return false; } - regular = S_ISREG (file->st.st_mode); + regular = S_ISREG (file->st.st_mode) != 0; if (regular) { /* off_t might have a wider range than ssize_t - in other words,