Skip to content

Conversation

@sylvestre
Copy link
Contributor

Closes: #9705

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/misc/nohup is no longer failing!
Note: The gnu test tests/tail/inotify-dir-recreate is now being skipped but was previously passing.

// Use symlink_metadata to get the actual target's dev/ino
// after following symlinks (we need to follow the symlink to see
// where it points)
if let Ok(metadata) = fs::metadata(path) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the MacOS tests are failing here because its unable to get the metadata even though its root. Adding a canonicalize to here so that in the MacOS case where the tests are failing, even though:

// First check the simple path-based case (e.g., "/")
    let path_looks_like_root = path.has_root() && path.parent().is_none();

This exists, if you can't get the metadata it will still fail if the canonicalize returns a "/" after this step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rm --preserve-root can be bypassed via symlink to /

2 participants