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

network-functions: Fix a bug in is_nm_handling() #488

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

RN97
Copy link
Contributor

@RN97 RN97 commented Sep 18, 2024

Currently the "^" anchor is applied to the "connected" case and does not apply to the "connecting" case in the grep due to the way the brackets () are placed. This can cause the grep statement to incorrectly return a match.

For ex: When trying to check for eth0 using is_nm_handling(), "bondeth0:connecting" would also match the grep and return incorrectly.

Currently the "^" anchor is applied to the "connected" case and does not
apply to the "connecting" case in the grep due to the way the brackets
() are placed. This can cause the grep statement to incorrectly return a
match.

For ex: When trying to check for eth0 using is_nm_handling(),
"bondeth0:connecting" would also match the grep and return incorrectly.

Signed-off-by: Rohit Nair <[email protected]>
@lnykryn lnykryn merged commit 5c61fd7 into fedora-sysv:main Sep 19, 2024
14 checks passed
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.

2 participants