Ticket #1989 (new defect)
Improper creation of the file archive from the directory containing the "\" in the name
Reported by: | pavlinux | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | Future Releases |
Component: | mc-core | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
Improper creation of the file archive from the directory containing the "\" in the name
Eample:
# mkdir 'TEst\n Dir\r X'
# ls
TEst\n Dir\r X
# cd 'TEst\n Dir\r X'
# pwd
/tmp/TEST/TEst\n Dir\r X
# mc
# <F2>
Сompress the current subdirectory (tar.gz)
<ENTER><ENTER>
# cd ..
# ls
TEstn Dirr X.tar.bz
but need TEst\n Dir\r X.tar.bz
Attachments
Change History
comment:1 Changed 15 years ago by pavlinux
ISO/IEC 10646-1:2000
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap06.html
Other, about filenames
http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html
http://mywiki.wooledge.org/BashFAQ/020
comment:2 Changed 15 years ago by pavlinux
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_170
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12
A pathname consisting of a single <slash> shall resolve to the root directory of the process. A null pathname shall not be successfully resolved. A pathname that begins with two successive <slash> characters may be interpreted in an implementation-defined manner, although more than two leading <slash> characters shall be treated as a single <slash> character.
patch