Skip to content

fix uucore/fsext/MountInfo::new mount_dir not unescaped #5754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

Yykz
Copy link
Contributor

@Yykz Yykz commented Dec 30, 2023

It is the continuation of #5679, I accidentally deleted my branch and I can't re-open the PR
sorry for the inconvenience

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

sylvestre commented Sep 14, 2024

@Yykz is it ready to be reviewed? thanks

sorry for the latency

Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/mv/mv-n is no longer failing!
Congrats! The gnu test tests/mv/update is no longer failing!
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

Comment on lines +163 to +165
.replace(r#"\040"#, " ")
.replace(r#"\011"#, " ")
.replace(r#"\134"#, r#"\"#);
Copy link
Contributor

@sylvestre sylvestre Sep 16, 2024

Choose a reason for hiding this comment

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

Suggested change
.replace(r#"\040"#, " ")
.replace(r#"\011"#, " ")
.replace(r#"\134"#, r#"\"#);
// Replace ASCII space with a regular space character
.replace(r#"\040"#, " ")
// Replace \011 ASCII horizontal tab with a tab character
.replace(r#"\011"#, " ")
// Replace ASCII backslash with an actual backslash character
.replace(r#"\134"#, r#"\"#);

Copy link
Contributor

Choose a reason for hiding this comment

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

and it should be moved into a function

Copy link
Contributor

Choose a reason for hiding this comment

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

@Yykz did you see this comment? thanks :)

@sylvestre
Copy link
Contributor

done here: #7151

@sylvestre sylvestre closed this Jan 17, 2025
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.

2 participants