提交 9e5e1ca1 编写于 作者: J John Ferlan

storage: Fix check for stable path check

Fix the if (!STRPREFIX(path, "/dev")) to be if (!STRPREFIX(path, "/dev/"))
to ensure a path such as "/device" isn't declared stable.
上级 9126161d
...@@ -1680,7 +1680,7 @@ virStorageBackendPoolPathIsStable(const char *path) ...@@ -1680,7 +1680,7 @@ virStorageBackendPoolPathIsStable(const char *path)
if (path == NULL || STREQ(path, "/dev") || STREQ(path, "/dev/")) if (path == NULL || STREQ(path, "/dev") || STREQ(path, "/dev/"))
return false; return false;
if (!STRPREFIX(path, "/dev")) if (!STRPREFIX(path, "/dev/"))
return false; return false;
return true; return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册