Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 130306 - "#" in a filename in a manifest fails
"#" in a filename in a manifest fails
Status: CLOSED DUPLICATE of bug 112727
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-08-18 17:55 EDT by Mark Hatle
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-29 16:25:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to change the behavior to only recognize a "#" comment only at BOL (1.06 KB, patch)
2004-08-18 17:56 EDT, Mark Hatle
no flags Details | Diff

  None (edit)
Description Mark Hatle 2004-08-18 17:55:15 EDT
If the pathname of a file in an RPM manifest includes a "#", the
remainder of the line is treated as a comment.
Comment 1 Mark Hatle 2004-08-18 17:56:43 EDT
Created attachment 102860 [details]
Patch to change the behavior to only recognize a "#" comment only at BOL

Change the behavior of RPM when processing manifests from believing any
"#" is a comment start, to only a "#" at the Beginning-of-Line is a
comment.  (It allows for white space to be ignored at the BOL.)

This behavior is required to account for pathnames that have a "#" in
Comment 2 James Olin Oden 2004-08-19 08:49:11 EDT
Hi Mark,

I would much prefer a patch that allows for escaped comments.
Something like adding \ before any # you want to be interpreted as
part of a filename.   I personally haven't put comments after a
filename, but I can't say others have not, and I would not want
their manifests to break.

Comment 3 Mark Hatle 2004-08-19 12:38:40 EDT
It shouldn't be hard to add a loop (along with the attached path) that
after checking s[0]='#' to move over the string looking for "#" then
s[i-1]!='\' terminate the string.

(This makes the creation of the manifest a bit more difficult in my
opinion, but I think it would restore behavior?)

jbj, any opinion?  I can spend a couple of minutes to do this if you
think it's valuable.

As an FYI, we encountered this because our installer was doing a
"find" operation on a path full of packages and placing the results
into a manifest file and then passing that to RPM.  On solaris there
are a number of dynamic mount points that contain a "#" in them. 
(such as "/dev/cdrom#1")
Comment 4 John Thacker 2006-10-29 16:25:46 EST

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

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