* util/ieee1275/ofpath.c (check_sas): Fix sas path.

This commit is contained in:
Isao Shimizu 2012-06-02 14:53:23 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 45dbe3000b
commit 0d3d137e79
2 changed files with 6 additions and 2 deletions

View file

@ -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> 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which

View file

@ -337,9 +337,9 @@ check_sas (char *sysfs_path, int *tgt)
*q = '\0'; *q = '\0';
path_size = (strlen (p) + strlen (ed) path_size = (strlen (p) + strlen (ed)
+ sizeof ("%s/sas_device:%s/phy_identifier")); + sizeof ("%s/sas_device/%s/phy_identifier"));
path = xmalloc (path_size); 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); fd = open (path, O_RDONLY);
if (fd < 0) if (fd < 0)