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

fix(userspace/libsinsp): fix resolved PT_FSPATH and PT_FSRELPATH evt params #1597

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jasondellaluce
Copy link
Contributor

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area libsinsp

Does this PR require a change in the driver versions?

What this PR does / why we need it:

Which issue(s) this PR fixes:

This fixes a minor bug introduced in #1533 and affecting event params of type PT_FSPATH and PT_FSRELPATH. The issue involves wrong path resolutions in sinsp_evt::get_param_as_str that can cause the returned value to contain the resolved absolute path instead of the relative one even when not desired.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(userspace/libsinsp): fix resolved PT_FSPATH and PT_FSRELPATH evt params

…args

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Copy link
Contributor

@LucaGuerra LucaGuerra left a comment

Choose a reason for hiding this comment

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

Wrong variable name 😅 ! Thanks!

@poiana
Copy link
Contributor

poiana commented Dec 20, 2023

LGTM label has been added.

Git tree hash: 585f3ed062d098d39ce1baac1c9e083c476525e5

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Dec 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce, LucaGuerra

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [FedeDP,LucaGuerra,jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@FedeDP
Copy link
Contributor

FedeDP commented Dec 20, 2023

/cc @Andreagit97 0.14.1?

@poiana poiana merged commit 37e31d2 into master Dec 20, 2023
31 checks passed
@poiana poiana deleted the fix/resolved-concatenated-path branch December 20, 2023 13:08
@leogr
Copy link
Member

leogr commented Dec 20, 2023

/milestone 0.14.1

@poiana poiana added this to the 0.14.1 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants