Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1438149
Summary: | mc-wrapper.sh script does not work anymore | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Knud Christiansen <knud.skrald> |
Component: | mc | Assignee: | Jindrich Novy <novyjindrich> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | dvlasenk, gbonnema, mariofutire, novyjindrich, pahan, slavazanko |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | mc-4.8.19-2.fc26 mc-4.8.19-2.fc25 mc-4.8.19-2.fc24 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-09 21:24:58 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1433602 |
Description
Knud Christiansen
2017-04-01 08:49:14 UTC
After updating F25 MC from version 1:4.8.17-2.x86_64.fc25 to 1:4.8.19-1 the problem accours. downgrading to 1:4.8.17-2 makes the problem dissapear Knud If nobody noticed yet, this is caused by a changed location for temporary files. It should be changed to /var/tmp in mc-wrapper.sh. This is actually a duplicate of #1433602 Change mc-wrapper.sh pointing to /var/tmp solves the problem The mc-wrapper uses the environment variable TMPDIR to point to the temporary directory and /tmp if TMPDIR does not exist. Apparantly the mc-wrapper was designed to work no matter which temp directory was defined, as long as the variable TMPDIR was defined properly. So, the solution should be to define the variable TMPDIR to be /var/tmp, in stead of modifying mc-wrapper.sh. For reference the mc-wrapper code is: MC_USER=`id | sed 's/[^(]*(//;s/).*//'` MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$" /usr/bin/mc -P "$MC_PWD_FILE" "$@" if test -r "$MC_PWD_FILE"; then MC_PWD="`cat "$MC_PWD_FILE"`" if test -n "$MC_PWD" && test -d "$MC_PWD"; then cd "$MC_PWD" fi unset MC_PWD fi rm -f "$MC_PWD_FILE" unset MC_PWD_FILE unset MC_USER Is it so? Do you want that every other application would store temporary files in /var/tmp instead of /tmp? The reason for changing that location for mc was its' habit to create huge temporary files which doesn't fit into tmpfs. (In reply to vvs from comment #6) > Is it so? Do you want that every other application would store temporary > files in /var/tmp instead of /tmp? The reason for changing that location for > mc was its' habit to create huge temporary files which doesn't fit into > tmpfs. Hi vvs, I am not sure if you are responding to my comment or someone elses comment. Tbh I don't care which directory is temp, just that modifying mc-wrapper.sh may not be the way to go, because the wrapper uses an environment variable to point to the right directory. That's why I made my comment and included the source for mc-wrapper. So, if the directory should be /var/tmp, then besides modifying the temp directory, define TMPDIR to be /var/tmp should solve the problem. mc-4.8.19-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0b205eabf4 mc-4.8.19-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bf0dcd75c6 mc-4.8.19-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-70c2e0ec52 mc-4.8.19-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-70c2e0ec52 mc-4.8.19-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0b205eabf4 mc-4.8.19-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bf0dcd75c6 mc-4.8.19-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report. Problem still there, need to change mc-wrapper.sh as described in comment #2 mc-4.8.19-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. Confirm. It's not fixed in mc-4.8.19-2.fc25 and should be reopened. 4.8.19-4 has also the failure.....exit not to current folder Change mc-wrapper to /var/tmp from /tmp makes it work mc-4.8.19-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |