Bug 161582 - rpm is unable to install files placed in paths with spaces in the name
rpm is unable to install files placed in paths with spaces in the name
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2005-06-24 13:06 EDT by David Nielsen
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-28 14:31:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Nielsen 2005-06-24 13:06:53 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Epiphany/1.7.1

Description of problem:
By default rpm doesn't correctly parse paths with spaces in them, now for normal use this isn't a big issue, one could just avoid names with spaces. However I'm on Danish locale and my default Downloads dir is called "Hentede filer", which I presume is the default (it was when I created it at least) for this locale. This means that every time a user clicks an rpm file it will go there and since system-package-config (or whatever handles package install graphically) uses rpm underlying it will fail. 

LANG=C rpm -Uvh "Hentede\ filer/skype-" will work, but that is not how rpm reads that dir name by default, thus causing the problem for the frontend that the user would see.

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

How reproducible:

Steps to Reproduce:
1. install .rpm file placed in a dir with spaces in the name


Actual Results:  LANG=C rpm -Uvh Hentede\ filer/skype-
error: open of Hentede failed: No such file or directory
error: open of filer/skype- failed: No such file or directory

Expected Results:  correct install

Additional info:
Comment 1 Paul Nasrat 2005-11-28 14:31:10 EST
Double quoting is needed to support globs in rpm itself (once for shell, once
for rpm).
Comment 2 David Nielsen 2005-11-28 14:48:33 EST
Still, this breaks the system-package-config frontend for EVERYBODY that places
rpms default in a spaced path - like danish users would.

I consider this quite critical as it completely by default breaks on every
machine around me. Something needs to be done.
Comment 3 Paul Nasrat 2005-11-28 17:59:52 EST
System-config-packages in it's current form is going away, and doesn't exec rpm
directly.  We'll try to ensure that the replacement for s-c-p works, but that's
a seperate issue from this.

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