* util/ieee1275/ofpath.c (check_sas): Fix sas path.
This commit is contained in:
parent
45dbe3000b
commit
0d3d137e79
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
|
||||
|
||||
* util/ieee1275/ofpath.c (check_sas): Fix sas path.
|
||||
|
||||
2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
|
||||
|
|
|
@ -337,9 +337,9 @@ check_sas (char *sysfs_path, int *tgt)
|
|||
*q = '\0';
|
||||
|
||||
path_size = (strlen (p) + strlen (ed)
|
||||
+ sizeof ("%s/sas_device:%s/phy_identifier"));
|
||||
+ sizeof ("%s/sas_device/%s/phy_identifier"));
|
||||
path = xmalloc (path_size);
|
||||
snprintf (path, path_size, "%s/sas_device:%s/phy_identifier", p, ed);
|
||||
snprintf (path, path_size, "%s/sas_device/%s/phy_identifier", p, ed);
|
||||
|
||||
fd = open (path, O_RDONLY);
|
||||
if (fd < 0)
|
||||
|
|
Loading…
Reference in a new issue