You misread the case here, Theodore.
It's not a problem of language - accented letters and diacritics are used in 
many languages and might be used in labels.

Sorry for me just being a stupid downstream user. Such names with «
special » characters in are a flawed design as they have high potential
for confusion ( both for human and system. )

As in your example

foo\$bar → becomes → 'foo\x24bar' → not exactly the same form, which
might not be expected by uneducated user. And ( legitimately ) escaped
but not usable « as is » in all context.



In fact, there's nothing wrong with using any of these characters in
file system labels.

Of course, there's something wrong about using *some* of those characters / \ 
space * $ #
Accented letters are not the issue ( except with new Ubuntu installer… )

What will be the output of

cd /path/to/{ any label containing / or * or $ or spaces in its name }

if { label name } is not escaped ?

To prevent user from any later confusion, e2label should at least gives
a warning if « special » characters are used inside a label.

And my opinion is that e2label should strictly prevent using those « special » 
characters inside label.
While those can be « managed » with escaping, « names » in paths should never 
create confusion, so avoiding by default / or $ or * sound safer to me.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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@p:~$ sudo e2label /dev/sdb12 /Ti\$*
  a@p:~$

  a@p:~$ sudo e2label /dev/sdb12
  /Ti$*
  a@p:~$

  a@p:~$ lsblk -fe7 | grep sdb12
  └─sdb12   ext4              1.0   /Ti$*             
f583e9b0-f1de-438f-8da8-c1e070407628
  a@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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to