diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2018-08-04 12:08:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-04 12:08:26 +0200 |
commit | bb277d1eff052e2478fb8c132bc42793ce91b870 (patch) | |
tree | acebc3128a06e6495cf5e25edd36ab58f93f701e /ranger | |
parent | ec8f343e9b32e9168c45fff39c6afa1407a18e06 (diff) | |
parent | 3eeb239ec394d0f17656bbf2ec0ea6c9d33a05dd (diff) | |
download | ranger-bb277d1eff052e2478fb8c132bc42793ce91b870.tar.gz |
Merge pull request #1238 from Enzime/fix/run-as-root-on-macos
Fix run as root on macOS
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 672b0597..07a76488 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -357,7 +357,7 @@ class Rifle(object): # pylint: disable=too-many-instance-attributes self.hook_before_executing(command, self._mimetype, self._app_flags) try: if 'r' in flags: - prefix = ['sudo', '-E', 'su', '-mc'] + prefix = ['sudo', '-E', 'su', 'root', '-mc'] else: prefix = ['/bin/sh', '-c'] |