Skip to content

Commit 2d7ec00

Browse files
committed
Remap filenames in LinkFile
1 parent 14ba88d commit 2d7ec00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloud/aws/aws_env.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,9 @@ Status AwsEnv::LinkFile(const std::string& src, const std::string& target) {
14451445
if (has_dest_bucket_ || has_src_bucket_) {
14461446
return Status::NotSupported();
14471447
}
1448-
return base_env_->LinkFile(src, target);
1448+
auto src_remapped = RemapFilename(src);
1449+
auto target_remapped = RemapFilename(target);
1450+
return base_env_->LinkFile(src_remapped, target_remapped);
14491451
}
14501452

14511453
//

0 commit comments

Comments
 (0)