On Wed, Apr 25, 2018 at 03:24:55PM +0200, Martin Kletzander wrote:
Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx> --- src/storage/storage_backend_fs.c | 2 +- src/storage/storage_backend_gluster.c | 6 ++-- src/storage/storage_backend_logical.c | 2 +- src/storage/storage_backend_vstorage.c | 6 ++-- src/storage/storage_driver.c | 6 ++-- src/storage/storage_util.c | 44 +++++++++++++------------- 6 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/storage/storage_backend_vstorage.c b/src/storage/storage_backend_vstorage.c index 076617aeb634..fcaebf29e7c6 100644 --- a/src/storage/storage_backend_vstorage.c +++ b/src/storage/storage_backend_vstorage.c @@ -45,11 +45,11 @@ virStorageBackendVzPoolStart(virStoragePoolObjPtr pool) char *mode = NULL; /* Check the permissions */ - if (def->target.perms.mode == (mode_t) - 1)
Same here.
+ if (def->target.perms.mode == (mode_t)- 1) def->target.perms.mode = VIR_STORAGE_DEFAULT_POOL_PERM_MODE; - if (def->target.perms.uid == (uid_t) -1) + if (def->target.perms.uid == (uid_t)-1) def->target.perms.uid = geteuid(); - if (def->target.perms.gid == (gid_t) -1) + if (def->target.perms.gid == (gid_t)-1) def->target.perms.gid = getegid(); /* Convert ids to names because vstorage uses names */
Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx> Jano
Attachment:
signature.asc
Description: Digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list