Skip to content

Close stdin after write in unmarshal#989

Open
utafrali wants to merge 2 commits intolmorg:developfrom
utafrali:fix/issue-987-unable-to-successfully-execute-su-root
Open

Close stdin after write in unmarshal#989
utafrali wants to merge 2 commits intolmorg:developfrom
utafrali:fix/issue-987-unable-to-successfully-execute-su-root

Conversation

@utafrali
Copy link
Copy Markdown

@utafrali utafrali commented Apr 7, 2026

Fixes #987

The issue was that stdin was getting closed before the write completed. Moving the close call after the write ensures the data actually gets flushed to the unmarshaller. This was preventing su root and similar commands from working properly.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

@lmorg lmorg changed the base branch from master to develop April 9, 2026 12:14
@lmorg
Copy link
Copy Markdown
Owner

lmorg commented Apr 9, 2026

Thanks for this patch. I'll pull your branch in to do some testing on my side before merging into the develop branch for the next release

(I'm sure you're tested this thoroughly yourself but this change touches on some heavily used routines so it's worth having a 2nd person double checking too)

@utafrali
Copy link
Copy Markdown
Author

utafrali commented Apr 9, 2026

Sounds good, appreciate you double-checking it. Let me know if anything comes up during testing.

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.

Unable to successfully execute su root

2 participants