mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
Check return on mkdir for LOCKSPACE_DIR
This commit is contained in:
parent
0527d6bd41
commit
0c6e95fe78
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user