Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btmgmt --index broken #639

Closed
juergh opened this issue Oct 30, 2023 · 0 comments
Closed

btmgmt --index broken #639

juergh opened this issue Oct 30, 2023 · 0 comments

Comments

@juergh
Copy link

juergh commented Oct 30, 2023

Commit f2f7c74 ("shared/shell: Add support for -i/--init-script")
introduced a short option namespace collision with btmgmt's --index option,
both of which use -i.

As a result, a provided --index is treated as an init-script...

$ sudo btmgmt --index 0 info
Unable to open 0: No such file or directory (2)
github-actions bot pushed a commit to tedd-an/bluez-upstream-test that referenced this issue Oct 30, 2023
The newly added option -i/--init-script introduced a short option
namespace collision with btmgmt's --index, both of which use '-i'.

As a result, a provided --index is treated as a file name:

$ sudo btmgmt --index 0 info
Unable to open 0: No such file or directory (2)

Fix this by using '-s' for --init-script.

Fixes: bluez/bluez#639
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
github-actions bot pushed a commit to BluezTestBot/bluez that referenced this issue Oct 30, 2023
The newly added option -i/--init-script introduced a short option
namespace collision with btmgmt's --index, both of which use '-i'.

As a result, a provided --index is treated as a file name:

$ sudo btmgmt --index 0 info
Unable to open 0: No such file or directory (2)

Fix this by using '-s' for --init-script.

Fixes: bluez#639
Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant