]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/storage/zfs.c
zfs: Fix return value on zfs_snapshot error
[mirror_lxc.git] / src / lxc / storage / zfs.c
index b75708f1c1272e4f74ebc28f883ca6b8b4c978c5..fc3b32247e16cecf5a35147c25e19eb9a4ed3125 100644 (file)
@@ -427,7 +427,7 @@ bool zfs_snapshot(struct lxc_conf *conf, struct lxc_storage *orig,
        if (ret < 0 || ret >= PATH_MAX) {
                ERROR("Failed to create string");
                free(snapshot);
-               return -1;
+               return false;
        }
 
        cmd_args.dataset = lxc_storage_get_path(new->src, new->type);