Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Enable Fallback for new invocation of su - #409

Merged
setrofim merged 2 commits into
ARM-software:masterfrom
marcbonnici:su_fix
Jul 30, 2019
Merged

setrofim merged 2 commits into
ARM-software:masterfrom
marcbonnici:su_fix

Conversation

@marcbonnici

Copy link
Copy Markdown
Collaborator

As per #405 not all versions of su support the -c parameter so try to determine which invocation should be used upon connection.

Commit 89c40fb switched from using `echo CMD | su` to `su -c CMD`
however not all modern versions of `su` support this format.
Automatically try and detect if the new style is supported when
connecting and if not, fall back to the old implementation.
@setrofim
setrofim merged commit 986261b into ARM-software:master Jul 30, 2019
@marcbonnici
marcbonnici deleted the su_fix branch July 30, 2019 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants