]>
Commit | Line | Data |
---|---|---|
73276c91 HS |
1 | --- grub-0.95/lib/device.c.orig 2004-05-23 18:34:29.000000000 +0200 |
2 | +++ grub-0.95/lib/device.c 2004-09-21 18:15:23.785137837 +0200 | |
3 | @@ -828,9 +828,11 @@ int | |
4 | is_disk_device (char **map, int drive) | |
5 | { | |
6 | struct stat st; | |
7 | + int retval; | |
8 | ||
9 | assert (map[drive] != 0); | |
10 | - assert (stat (map[drive], &st) == 0); | |
11 | + retval = stat (map[drive], &st); | |
12 | + assert (retval == 0); | |
13 | /* For now, disk devices under Linux are all block devices. */ | |
14 | return S_ISBLK (st.st_mode); | |
15 | } |