Skip to content
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

lib/vfscore: Prevent superfluous slashes in working directory #1302

Merged

Conversation

mschlumpp
Copy link
Member

The mount point can contain a trailing slash (for example the root mount point has a path of "/"). The path that is concatenated to the mount point also contains a slash at the beginning. Therefore, extra care must be taken to prevent two slashes from appearing besides each other.

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

Base target

  • Architecture(s): N/A
  • Platform(s): N/A
  • Application(s): N/A

Additional configuration

Description of changes

@mschlumpp mschlumpp requested a review from a team as a code owner February 1, 2024 13:55
@github-actions github-actions bot added area/lib Internal Unikraft Microlibrary lang/c Issues or PRs to do with C/C++ lib/vfscore VFS Core Interface labels Feb 1, 2024
@razvand razvand requested review from RaduNichita and StefanJum and removed request for a team February 2, 2024 08:16
@razvand razvand self-assigned this Feb 2, 2024
@razvand razvand added this to the v0.16.2 (Telesto) milestone Feb 2, 2024
lib/vfscore/syscalls.c Outdated Show resolved Hide resolved
The mount point can contain a trailing slash (for example the root mount
point has a path of "/"). The path that is concatenated to the mount point
also contains a slash at the beginning. Therefore, extra care must be taken
to prevent two slashes from appearing besides each other.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

@RaduNichita RaduNichita self-requested a review February 5, 2024 22:28
Copy link
Contributor

@RaduNichita RaduNichita left a comment

Choose a reason for hiding this comment

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

Looks good.

Reviewed-by: Radu Nichita radunichita99@gmail.com

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

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

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand added the merge Label to trigger merge action label Feb 6, 2024
@unikraft-bot unikraft-bot changed the base branch from staging to staging-1302 February 6, 2024 17:22
@unikraft-bot unikraft-bot merged commit 768ed4c into unikraft:staging-1302 Feb 6, 2024
12 of 13 checks passed
unikraft-bot pushed a commit that referenced this pull request Feb 6, 2024
The mount point can contain a trailing slash (for example the root mount
point has a path of "/"). The path that is concatenated to the mount point
also contains a slash at the beginning. Therefore, extra care must be taken
to prevent two slashes from appearing besides each other.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1302
@unikraft-bot unikraft-bot added ci/merged Merged by CI and removed merge Label to trigger merge action labels Feb 6, 2024
@mschlumpp mschlumpp deleted the mschlumpp/fix/chdir-path branch February 7, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lib Internal Unikraft Microlibrary ci/merged Merged by CI lang/c Issues or PRs to do with C/C++ lib/vfscore VFS Core Interface
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants