Bug 455267 - quoting issue in rpm scriptlets causes error message
quoting issue in rpm scriptlets causes error message
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: openoffice.org (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Caolan McNamara
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-14 11:32 EDT by Valdis Kletnieks
Modified: 2008-07-19 12:15 EDT (History)
1 user (show)

See Also:
Fixed In Version: 3.0.0-0.0.25.1.fc10
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-19 12:15:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Valdis Kletnieks 2008-07-14 11:32:22 EDT
Description of problem:
Bad quoting in this scriptlet:
preinstall scriptlet (using /bin/sh):
if [ $1 -gt 1 ]; then
    # Upgrade => deregister old extension
    unopkg remove --shared `grep identifier
/usr/lib64/openoffice.org/extensions/presenter-screen.oxt/description.xml | cut
-d\\\" -f 2` || :
fi
causes yum to throw an error:

/usr/src/redhat/tmp/rpm-tmp.58165: command substitution: line 3: unexpected EOF
while looking for matching `"'
/usr/src/redhat/tmp/rpm-tmp.58165: command substitution: line 4: syntax error:
unexpected end of file
  Updating       : openoffice.org-presenter-screen                 [ 6/39] 

Looks like -d\\\" doesn't have quite enough \ in it.  Would -d'"' work better?
(similar issue in preuninstall scriptlet)

Version-Release number of selected component (if applicable):
openoffice.org-presenter-screen-3.0.0-0.0.24.1.fc10.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Caolan McNamara 2008-07-14 11:53:02 EDT
Hmm, thanks. Lets try that instead
Comment 2 Caolan McNamara 2008-07-19 12:15:24 EDT
Fixed in 3.0.0-0.0.25.1.fc10, though note that the m24 one on uninstalling will
probably still warn, but the m25 on installing and from there onwards will be ok

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