-
Notifications
You must be signed in to change notification settings - Fork 188
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
ENT-9402: Moved ignore_interfaces.rx to $(sys.workdir) #5357
Conversation
Ticket: None Changelog: None Signed-off-by: Lars Erik Wik <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you are at this code it would be nice to also add a check of the actual error (errno
) and adapt the log messages to its value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me either way.
Moved expected location of ignore_interfaces.rx from $(sys.inputdir) to $(sys.workdir). If the file is found in $(sys.inputdir) but not in $(sys.workdir), we will still process it for backwards compatability, but issue a warning prompting the user to move it to the appropriate location. Ticket: ENT-9402 Changelog: Commit Signed-off-by: Lars Erik Wik <[email protected]>
Ticket: None Changelog: None Signed-off-by: Lars Erik Wik <[email protected]>
@cf-bottom Jenkins please :) |
We should back-port bug fix 301a764 to |
Fixed bug where the agent may enter an infinite loop while trying to read the interface exception file. The problem comes from the fact that the while loop for reading each line in the file checks for end-of-file, but not error. If an error occurs, end-of-file will never be reached, hence the loop will never break. Ticket: None Changelog: Title Signed-off-by: Lars Erik Wik <[email protected]>
CF_IGNORE_INTERFACES); | ||
assert(ret >= 0 && (size_t) ret < sizeof(filename)); | ||
|
||
if ((fin = fopen(filename, "r")) == NULL) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
CF_IGNORE_INTERFACES); | ||
assert(ret >= 0 && (size_t) ret < sizeof(filename)); | ||
|
||
if ((fin = fopen(filename, "r")) == NULL) |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
I saw this got merged, so I merged the related PRs: |
Back-ported to #5377 |
Merge together:
PR includes:
Demo: