1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: remove double //

dev_dir ends with /.
This commit is contained in:
Zdenek Kabelac 2023-07-16 23:00:24 +02:00
parent 469bcc28ac
commit 09e17f99c5

View File

@ -5989,8 +5989,8 @@ static int _set_writecache_block_size(struct cmd_context *cmd,
goto out;
}
if (dm_snprintf(pathname, sizeof(pathname), "%s/%s/%s", cmd->dev_dir,
lv->vg->name, lv->name) < 0) {
if (dm_snprintf(pathname, sizeof(pathname), "%s%s/%s",
cmd->dev_dir, lv->vg->name, lv->name) < 0) {
log_error("Path name too long to get LV block size %s", display_lvname(lv));
goto bad;
}