Skip to content

Commit

Permalink
TerminalWidget: add doas checking (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 authored Aug 21, 2024
1 parent 5d4eae7 commit 3f6f51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/TerminalWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ namespace Terminal {

if ("\n" in text) {
warn_text = _("The pasted text may contain multiple commands");
} else if ("sudo" in text) {
} else if ("sudo" in text || "doas" in text) {
warn_text = _("The pasted text may be trying to gain administrative access");
}

Expand Down

0 comments on commit 3f6f51c

Please sign in to comment.