Commit 5c61fd7
network-functions: Fix a bug in is_nm_handling()
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]>1 parent 79ec530 commit 5c61fd7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments