Bug 217258 - rpm does not work on package file paths containing spaces
Summary: rpm does not work on package file paths containing spaces
Keywords:
Status: CLOSED DUPLICATE of bug 250990
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-26 01:24 UTC by David Monniaux
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-25 11:13:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Monniaux 2006-11-26 01:24:57 UTC
Description of problem:
rpm does not work on package files whose access path contains spaces

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

How reproducible:
always

Steps to Reproduce:
1. put Fedora DVD into DVD drive
2. LANG=C rpm -qip /media/FC-6\ x86_64\
DVD/Fedora/RPMS/alsa-lib-1.0.12-2.fc6.i386.rpm
3.
  
Actual results:
error: open of /media/FC-6 failed: No such file or directory
error: open of /media/FC-6 failed: No such file or directory

Probably, incorrect escaping of file names in the scripts causes this.

Expected results:
should have queried the package

Additional info:

Comment 1 Jeff Johnson 2006-11-26 03:23:25 UTC
A work around is
    cd /media/FC-6\ x86_64\ DVD/Fedora/RPMS
    rpm -qip alsa-lib-1.0.12-2.fc6.i386.rpm


Comment 2 Jeff Johnson 2006-11-26 19:09:30 UTC
Fixed in rpm cvs, should be in rpm-4.4.8-0.4 when built.

UPSTREAM

Comment 3 Simo Sorce 2007-06-18 23:52:35 UTC
This bug is present in RHEL-5 as well, is this fix going to be in 5.1 ?

Comment 4 Paul Nasrat 2007-06-19 08:47:18 UTC
Quoting or double escaping works:

rpm -qp Some\\\ Stuff/createrepo-0.4.10-1.noarch.rpm 
createrepo-0.4.10-1.noarch

rpm -qp 'Some\ Stuff/createrepo-0.4.10-1.noarch.rpm' 
createrepo-0.4.10-1.noarch


Comment 5 Red Hat Bugzilla 2007-08-21 05:30:02 UTC
User pnasrat's account has been closed

Comment 6 Panu Matilainen 2007-08-22 06:29:41 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 7 Panu Matilainen 2007-10-25 11:13:08 UTC
Marking as dupe of 250990, this is not going to get fixed for FC6 at this point
anyway.

*** This bug has been marked as a duplicate of 250990 ***


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