[Bug 849082] New: midnight commander unrar plugin broken with filenames with spaces
https://bugzilla.novell.com/show_bug.cgi?id=849082 https://bugzilla.novell.com/show_bug.cgi?id=849082#c0 Summary: midnight commander unrar plugin broken with filenames with spaces Classification: openSUSE Product: openSUSE 13.1 Version: RC 2 Platform: All OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cus@fazekas.hu QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 When I enter a packed rar file with in midnight commander, if the RAR file contains file or directory names with spaces, the file or directory names are only displayed until the first space character. Reproducible: Always Steps to Reproduce: Browse a .rar file in midnight commander where the rar file contains filenames with spaces. Actual Results: The file names which are shown in midnight commander are trimmed at the first space character. Expected Results: File names with spaces are shown correctly. This used to work in openSuSE 12.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c1
Dirk Weber
name_offs = index($0, $8) printf "%s 1 %s %s %d %02d/%02d/%02d %s ./%s\n", $1, uid, gid, $2, a[2], a[1], a[3], $6, substr($0, name_offs)
I have used the same approach in an extfs script for tar files for bnc#836558 and use it without problems for months (untar extfs attached there). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c2
--- Comment #2 from Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c
Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c
Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c
Kyrill Detinov
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c3
David Haller
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c4
Dirk Weber
Patched version is "under way". Please test.
Thanks a lot for the patch, Dirk. BTW: the bug does _not_ appear if you uninstall unrar and install 'rar' ;) I noticed as I could not reproduce. Until I noticed, I had rar but not unrar installed.
Sorry, I just found a bug in it. It uses $8 (the beginning of a filename until a separating blank - if one is included) to find this in the complete output line of unrar and then uses the rest of the line as "file name". It can be that this string already appears in the line before the actual file name. E.g. a file has the name "0" then it will be found in the date or time or file size and the output is wrong. I am working on an update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c5
Dirk Weber
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c6
David Haller
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c7
Marton Balint
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c8
--- Comment #8 from Marton Balint
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c9
--- Comment #9 from David Haller
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c10
--- Comment #10 from David Haller
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c11
Marton Balint
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c12
--- Comment #12 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c13
--- Comment #13 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c14
--- Comment #14 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=849082
https://bugzilla.novell.com/show_bug.cgi?id=849082#c16
--- Comment #16 from Bernhard Wiedemann
http://bugzilla.novell.com/show_bug.cgi?id=849082
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=849082
--- Comment #17 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=849082
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com