Bug 190902 - rpm cannot cope with spaces in paths
Summary: rpm cannot cope with spaces in paths
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-06 09:15 UTC by Peter Klotz
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-06-30 13:35:30 UTC


Attachments (Terms of Use)

Description Peter Klotz 2006-05-06 09:15:28 UTC
Description of problem:
rpm does not install RPMs that contain spaces in their paths. Even if the space 
is correctly escaped with a backslash the installation fails. Quoting the 
argument with single quotes also does not help.

Version-Release number of selected component (if applicable):
4.4.2-15.2

How reproducible:
Always

Steps to Reproduce:
1. Place Fedora RPMs in a path with spaces
2. Execute: rpm -Uvh /mnt/Fedora\ Core/5/i386/Fedora/RPMS/xen-3.0.1-4.i386.rpm
3.
  
Actual results:
error: open of /mnt/Fedora failed: No such file or directory
error: open of Core/5/i386/Fedora/RPMS/xen-3.0.1-4.i386.rpm failed: No such 
file or directory


Expected results:
The RPM should have been installed successfully.

Additional info:

Comment 1 Robert Scheck 2006-05-29 20:27:59 UTC
NOTABUG, when I remember correctly to bug #161582 in the past...

Comment 2 Paul Nasrat 2006-06-30 13:35:30 UTC
Try double quoting (for shell then rpm)

rpm -Uvh /mnt/Fedora\\\ Core/5/...

[pauln@enki rpm]$ rpm -ivh my\\\ srpms/dummy*
   1:dummy                  ########################################### [100%]
[pauln@enki rpm]$ rpm -ivh my\ srpms/dummy*
error: open of my failed: No such file or directory
error: open of srpms/dummy-1.0-1.src.rpm failed: No such file or directory



Comment 3 Peter Klotz 2006-07-13 17:11:38 UTC
Thanks for posting the workaround.


Note You need to log in before you can comment on or make changes to this bug.