提交 0c6e95fe 编写于 作者: J John Ferlan 提交者: Eric Blake

Check return on mkdir for LOCKSPACE_DIR

上级 0527d6bd
......@@ -293,7 +293,8 @@ static int testLockSpaceResourceLockPath(const void *args ATTRIBUTE_UNUSED)
lockspace = virLockSpaceNew(NULL);
mkdir(LOCKSPACE_DIR, 0700);
if (mkdir(LOCKSPACE_DIR, 0700) < 0)
goto cleanup;
if (virLockSpaceCreateResource(lockspace, LOCKSPACE_DIR "/foo") < 0)
goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册