Skip to content

Workaround when sudo prints text to standard out#920

Merged
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:readline-until-ready
Jan 1, 2024
Merged

Workaround when sudo prints text to standard out#920
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:readline-until-ready

Conversation

@skuhl
Copy link
Contributor

@skuhl skuhl commented Jan 1, 2024

When we use sudo and start the firewall process, we should be able to read standard in and find the string "READY". However, some administrators use a wrapper around sudo to print warning messages (instead of sudo's lecture feature) to standard out. This commit reads up to 100 lines looking for "READY" instead of expecting it on the first line.

I believe this should fix issue #916.

When we use sudo and start the firewall process, we should be able to
read standard in and find the string "READY". However, some
administrators use a wrapper around sudo to print warning messages
(instead of sudo's lecture feature) to standard out. This commit reads
up to 100 lines looking for "READY" instead of expecting it on the
first line.

I believe this should fix issue sshuttle#916.
@brianmay brianmay merged commit b4e4680 into sshuttle:master Jan 1, 2024
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