install_helper doesn't handle group names with spaces #40

Açık
Ghost tarafından 2020-02-07 18:00:33 +00:00 açıldı · 1 yorum

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) ... ```
Sahibi

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.
Bu konuşmaya katılmak için oturum aç.
2 Katılımcı
Bildirimler
Bitiş Tarihi
Bitiş tarihi atanmadı.
Bağımlılıklar

Bağımlılık yok.

Referans: coolaj86/telebit.js#40
Herhangi bir açıklama sağlanmadı.