mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
virfile: virDirCreate: Fix ALLOW_EXIST conditional
I screwed this up in the previous (post 1.2.16) commits
This commit is contained in:
parent
9deb96f9f0
commit
c8661a1a7e
@ -2289,7 +2289,7 @@ virDirCreateNoFork(const char *path,
|
||||
int ret = 0;
|
||||
struct stat st;
|
||||
|
||||
if (!((flags & VIR_DIR_CREATE_ALLOW_EXIST) && !virFileExists(path))) {
|
||||
if (!((flags & VIR_DIR_CREATE_ALLOW_EXIST) && virFileExists(path))) {
|
||||
if (mkdir(path, mode) < 0) {
|
||||
ret = -errno;
|
||||
virReportSystemError(errno, _("failed to create directory '%s'"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user