Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

kumarsgoyal
Copy link

Fix: handle filenames with spaces/newlines in kernbench source caching

This patch updates the loop used to cache the kernel source into RAM to handle filenames with spaces, newlines, and other special characters correctly.

Previously, the script used a for loop over backtick-evaluated find, which would break on filenames with spaces or unusual characters. This caused warnings like:

cat: ./tools/testing/selftests/devices/probe/boards/Dell: No such file or directory
cat: Inc.,XPS: No such file or directory

This patch replaces the loop with a more robust find . -type f -print0 | while IFS= read -r -d '' structure, which safely handles all valid filenames.

Signed-off-by: Sahil Kumar kumar.sgoyal@gmail.com

@metan-ucw
Copy link
Member

Hi! The change looks fine however there are spaces before tabs that should be fixed and the commit is missing signed-off-by line, see https://gerrit-review.googlesource.com/Documentation/user-signedoffby.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.