Bug 1117334
Summary: | unload from loaded modulefile broken | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Filip Krska <fkrska> | ||||||
Component: | environment-modules | Assignee: | Orion Poplawski <orion> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 22 | CC: | jsynacek, orion, qe-baseos-security, tuffavannayles | ||||||
Target Milestone: | --- | Keywords: | EasyFix, Patch, Regression | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | environment-modules-3.2.10-16.fc22 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | 1117327 | Environment: | |||||||
Last Closed: | 2015-07-21 08:14:30 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: | |||||||||
Attachments: |
|
Description
Filip Krska
2014-07-08 13:28:49 UTC
I'm not authorized to view the bugs this was cloned from. Is there a patch on those? Has it been submitted upstream? Created attachment 925471 [details]
unload from modulefile fix
Created attachment 925472 [details]
reproducer modules
Hi Orion, sorry for not re-attaching the patch and reproducer, mea culpa. Attached now. Jan, did you have chance to fwd the patch to upstream for review? The patch has not been submitted upstream. Feel free to do so. Reported to modules-interest mailing list, waiting for approval... Upstream report: http://sourceforge.net/p/modules/mailman/modules-interest/thread/53FF09E5.50200%40redhat.com/#msg32769961 Hi. I ran into this same error on my system and the patch above only fixed half the issues. As it stands the patch only fixes the case where unloads are done in the sub-command of a load. In order to allow loads (rather than unloads) during an unload an additional if clause is needed in the 'else': } else { if (load) { g_flags |= M_LOAD; g_flags &= ~M_REMOVE; } else { g_flags |= M_REMOVE; g_flags &= ~M_LOAD; } } However this seems to render the enclosing "if (!(g_flags & M_SUBCMD)) {" almost redundant as the only difference is the "g_flags |= M_SUBCMD;" line. Clearly some simplification would be possible, assuming this all works in other cases! This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Applied. environment-modules-3.2.10-16.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/environment-modules-3.2.10-16.fc22 Package environment-modules-3.2.10-16.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing environment-modules-3.2.10-16.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-11622/environment-modules-3.2.10-16.fc22 then log in and leave karma (feedback). environment-modules-3.2.10-16.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |