Skip to content

Fix(subenum): Isolate temp files by domain in OUT function#40

Open
yahyatoubali wants to merge 1 commit into
bing0o:masterfrom
yahyatoubali:fix-subdomain-list-contamination
Open

Fix(subenum): Isolate temp files by domain in OUT function#40
yahyatoubali wants to merge 1 commit into
bing0o:masterfrom
yahyatoubali:fix-subdomain-list-contamination

Conversation

@yahyatoubali

Copy link
Copy Markdown

When processing a list of domains with the -l flag, the OUT function used a broad tmp-* glob to gather and clean up temporary result files. This caused an issue where results from previously processed domains were not cleaned up and were incorrectly included in the output for subsequent domains.

This commit fixes the bug by changing the glob in the OUT function to be domain-specific (tmp-*-"$domain"). This ensures that only the temporary files belonging to the currently processed domain are aggregated and deleted, preventing result contamination between domains.

When processing a list of domains with the `-l` flag, the `OUT` function used a broad `tmp-*` glob to gather and clean up temporary result files. This caused an issue where results from previously processed domains were not cleaned up and were incorrectly included in the output for subsequent domains.

This commit fixes the bug by changing the glob in the `OUT` function to be domain-specific (`tmp-*-"$domain"`). This ensures that only the temporary files belonging to the currently processed domain are aggregated and deleted, preventing result contamination between domains.
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.

1 participant