diff --git a/lib/adapter/cmd.py b/lib/adapter/cmd.py index 7a63f64..93729bb 100644 --- a/lib/adapter/cmd.py +++ b/lib/adapter/cmd.py @@ -154,12 +154,10 @@ class AdapterChmod(CommandAdapter): def _get_command(self, topic, request_options=None): cmd = self._command[:] - if not cmd[0].startswith("/"): - cmd[0] = _get_abspath(cmd[0]) # cut chmod/ off if topic.startswith("chmod/"): - topic = topic[4:] + topic = topic[6:] return cmd + [topic] diff --git a/share/adapters/chmod.sh b/share/adapters/chmod.sh old mode 100644 new mode 100755