Bug 141304 - RPM does not support whitespace in path names
Summary: RPM does not support whitespace in path names
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 2
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-30 09:23 UTC by Jonas Anden
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2004-11-30 13:15:01 UTC


Attachments (Terms of Use)

Description Jonas Anden 2004-11-30 09:23:10 UTC
RPM does not support whitespace in path names, not even when enclosed
within '"' or escaped with '\'.

Version-Release number of selected component (if applicable):
rpm-4.3.1-0.3

How reproducible:
Always

Steps to Reproduce:
1. rpm -Uvh "path name with spaces/package.rpm"

Actual Results:
error: open of path failed: No such file or directory
error: open of name failed: No such file or directory
error: open of with failed: No such file or directory
error: open of spaces/package.rpm failed: No such file or directory


Expected Results:
Package should be installed/upgraded properly.

Additional info:
Workaround is to 'chdir' into directory and run rpm on just the filenames.

Comment 1 Jeff Johnson 2004-11-30 13:15:01 UTC
There are 2 levels of escaping needed:

ls a\ b/
time-1.7-22.i386.rpm

rpm -qp a\\\ b/time-1.7-22.i386.rpm
time-1.7-22.i386.rpm


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