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.
This commit is contained in:
parent
aa0f752dfe
commit
c0bc232b72
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -239,7 +239,7 @@ probe (const char *path, char *device_name)
|
|||
|
||||
stat (path, &st);
|
||||
|
||||
if (st.st_mode == S_IFREG)
|
||||
if (S_ISREG (st.st_mode))
|
||||
{
|
||||
/* Regular file. Verify that we can read it properly. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue