install_helper doesn't handle group names with spaces #40

Open
opened 2020-02-07 18:00:33 +00:00 by Ghost · 1 comment

For example, my group is something like "MYDOMAIN\Domain Users" (out of my control). When it attempts to chown the files, it fails:

chown: MYDOMAIN\Domain: illegal group name

I believe it's because the group (and username) are not being guarded when used in install_helper.sh:

chown $(id -u -n):$(id -g -n) ...
For example, my group is something like "MYDOMAIN\Domain Users" (out of my control). When it attempts to `chown` the files, it fails: ``` chown: MYDOMAIN\Domain: illegal group name ``` I believe it's because the group (and username) are not being guarded when used in `install_helper.sh`: ``` chown $(id -u -n):$(id -g -n) ... ```
Owner

That is unfortunate.

I will accept a PR if you want to find out where those places are and add quotes or escapes or whatever it needs to be.

That is unfortunate. I will accept a PR if you want to find out where those places are and add quotes or escapes or whatever it needs to be.
Sign in to join this conversation.
No Label
feature
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/telebit.js#40
No description provided.