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

ignore named pipe #601

Merged
merged 2 commits into from
Apr 27, 2023
Merged

ignore named pipe #601

merged 2 commits into from
Apr 27, 2023

Conversation

HoxhaEndri
Copy link
Member

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    it avoids copying named pipe files by checking it first with the file command

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)? If possible add a screenshot.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • Other information:

@HoxhaEndri HoxhaEndri added the bug Something isn't working label Apr 27, 2023
@@ -555,7 +555,10 @@ emulate_strace_run() {
fi
if [[ -n "$FILENAME_FOUND" ]]; then
write_log "[*] Copy file $ORANGE$FILENAME_FOUND$NC to $ORANGE$R_PATH$PATH_MISSING/$NC" "$LOG_FILE_STRACER"
cp -L "$FILENAME_FOUND" "$R_PATH""$PATH_MISSING" 2> /dev/null || true
OUTPUT=$(file "$FILENAME_FOUND" | cut -d ':' -f2)
if ! echo "$OUTPUT" | grep -q "(named pipe)";then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we do something like this to avoid echo and grep?
if [[ "$OUTPUT" != "named pipe" ]]; then

@HoxhaEndri HoxhaEndri merged commit 1672985 into e-m-b-a:master Apr 27, 2023
@HoxhaEndri HoxhaEndri deleted the namedpipe branch May 4, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants