* util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
rather than comparing against S_IFREG, which will almost never work.
+2009-09-02 Colin Watson <cjwatson@ubuntu.com>
+
+ * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
+ rather than comparing against S_IFREG, which will almost never work.
+
2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
* commands/loadenv.c (check_blocklists): Fix off-by-one error.
stat (path, &st);
- if (st.st_mode == S_IFREG)
+ if (S_ISREG (st.st_mode))
{
/* Regular file. Verify that we can read it properly. */