[Bug 381421] New: kiwi: pathname with spaces badly intepreted
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=381421 Summary: kiwi: pathname with spaces badly intepreted Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: psladek@novell.com QAContact: adrian@novell.com CC: postadal@novell.com, pnemec@novell.com Found By: --- Created an attachment (id=209028) --> (https://bugzilla.novell.com/attachment.cgi?id=209028) patch to escape (ch)root names When testing integration of KIWITest.pm module into kiwi.pl, I found that if chroot contain spaces, kiwi test (kiwi.pl --testsuite "/root/imgtest/chrut R" --test "/root/imgtest/tests/ldx x") fails, or more specifically, any intern rpm requirement automatically fails, because of error in KIWIManager.pm module, line 1393 : $data= qxx ("chroot $root rpm -q $pack 2>&1 "); When the names and pathes are escaped by "" (although it is probably not needed for package name in this case...): $data= qxx ("chroot \"$root\" rpm -q \"$pack\" 2>&1 "); it works. I have tried to put the \" everywhere in KIWIManager.pm where appropriate, though I am sure that there is still many other places where this still should be changed (and maybe, but hopefully not, some places where this change was inappropriate). The patch is in the attachment. It only solves this issue for --testsuite option, kiwi still cannot be run in create and prepare mode using chroot dir containing spaces. -- 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://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=381421
User ms@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=381421#c1
Marcus Schaefer
participants (1)
-
bugzilla_noreply@novell.com