X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fmount_image.c;h=e5d7fb98462b4fc5a853e918a82348d137f0f5ba;hp=905157c08101e111cfe78d6cc0fcfe7f05f60689;hb=fabacee4b6205284e197f07b4fefb8e66b1c3f4f;hpb=3f6953ea3d4af2785d3bc6bf586c26a4e321d142;ds=sidebyside diff --git a/src/mount_image.c b/src/mount_image.c index 905157c0..e5d7fb98 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2002,7 +2002,7 @@ static int wimfs_rename(const char *from, const char *to) return -ENOTDIR; } - ret = set_dentry_name(src, to); + ret = set_dentry_name(src, path_basename(to)); if (ret != 0) return -ENOMEM; if (dst)