Commit 6d63d16
committed
Fix flaky sysctl completion by handling /proc/sys errors gracefully
Skip directories on any error during /proc/sys traversal (race conditions,
permission denied, etc.) to provide partial completion results rather than
failing completely. Use filepath.WalkDir for better performance.
Fixes: #27252
Signed-off-by: Jan Rodák <[email protected]>1 parent 685a448 commit 6d63d16
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1979 | 1979 | | |
1980 | 1980 | | |
1981 | 1981 | | |
1982 | | - | |
| 1982 | + | |
1983 | 1983 | | |
1984 | | - | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1985 | 1989 | | |
1986 | 1990 | | |
1987 | | - | |
| 1991 | + | |
1988 | 1992 | | |
1989 | 1993 | | |
1990 | 1994 | | |
| |||
0 commit comments