Jump to content

[Armbian build PR] - Add doas support to `is_root_or_sudo_prefix`


Recommended Posts

Posted

Description

doas is not compatible with sudo flags. The codebase was checked for sudo-specific uses of this function, but none were found, all cases were in the form of sudo <command>. Replacing it with doas <command> yields the same result.

Was extracted from #6576 and can't be merged until it's reverted in #6642

How Has This Been Tested?

Used to build images on my machine with extensions that use is_root_or_sudo_prefix

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings

View the full article

<
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines