[Bug 2027979] Re: won't warn neither prevent usage of « risky » characters in labels
Coeur Noir
2027979 at bugs.launchpad.net
Tue Jul 18 23:12:37 UTC 2023
A warning if « special » characters are used in labels might be a first
step in the right direction.
Once again accented letters and diacritics are not the problem here
but characters that might get « translated » as « functions » such as / \ * and few others.
Only those.
Space character is rather well managed by auto-completion in most CLI.
Mostly.
It's not least common denominator but only the few characters that could be « risky ».
All other characters remain possible.
And it's not only about « uneducated user », it's just safer for
everyone by making labels more robust and « foolproof ».
But hey am just the stupid user ( sheep ) and you are the upstream maintainer ( god ).
You could make e2label smarter but you can't make users smarter after all…
So be it ?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to e2fsprogs in Ubuntu.
https://bugs.launchpad.net/bugs/2027979
Title:
won't warn neither prevent usage of « risky » characters in labels
Status in e2fsprogs package in Ubuntu:
Confirmed
Bug description:
Hi,
if naming or renaming an EXT volume,
e2label lets you use any character, including / or * or $ ( and
probably others, like accented letters é è à )
I'd expect at least a warning if such are to be found in a label name.
Or better, it should not be possible to use those in label names.
Example :
a at p:~$ sudo e2label /dev/sdb12 /Ti\$*
a at p:~$
a at p:~$ sudo e2label /dev/sdb12
/Ti$*
a at p:~$
a at p:~$ lsblk -fe7 | grep sdb12
└─sdb12 ext4 1.0 /Ti$* f583e9b0-f1de-438f-8da8-c1e070407628
a at p:~$
coming from https://forum.ubuntu-
fr.org/viewtopic.php?pid=22692892#p22692892 ( french )
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/2027979/+subscriptions
More information about the foundations-bugs
mailing list