The amends the remaining case in the rust code to use the libiberty
lbasename() instead of the (potentially variably-behaved) system
'basename()'.
gcc/rust/ChangeLog:
* metadata/rust-export-metadata.cc
(PublicInterface::write_to_path): Use 'lbasename()' instead of
'basename()'.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
{
// validate path contains correct extension
const std::string expected_file_name = expected_metadata_filename ();
- const char *path_base_name = basename (path.c_str ());
+ const char *path_base_name = lbasename (path.c_str ());
if (strcmp (path_base_name, expected_file_name.c_str ()) != 0)
{
rust_error_at (UNDEF_LOCATION,