Bug 1283101
Summary: | pyrpkg.Commands.commit() does not quote commit message | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Miroslav Suchý <msuchy> |
Component: | rpkg | Assignee: | Dennis Gilmore <dennis> |
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | epel7 | CC: | dennis, onosek, pbabinca, s |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-01-15 23:05:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miroslav Suchý
2015-11-18 09:36:51 UTC
Hi, I found this relic still opened during ticket exploration and I found some time for looking at it. I didn't look at the code at a time when the ticket was opened. In the current code, I don't see an issue - maybe it was fixed in a past during continuous development. The 'commit' command is executed via python's subprocess.Popen(). It has implicitly 'shell=False' parameter set and doesn't require quoting. I tested a modified command with a potential side effect. Command looked like: ['git', 'commit', '-m', 'safsd; touch /src/fedpkg/nnn;', '-a'] After the execution, no extra file was created and the whole argument was used as a commit message. I do confirm that it works now. |