Bug 1027279
Summary: | colorls.csh errors out if "noclobber" is set | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pádraig Brady <pbrady> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | admiller, kdudka, kzak, ooprala, ovasik, p, twaugh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | coreutils-8.21-21.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-02-05 03:33:43 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: |
I should have said the above is all on behalf of Ty Boyack <ty.boyack> from: http://bugs.gnu.org/15819 Rawhide commit https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20131104/1140247.html ... I'll keep it opened until fixed in next cumulative update for F19. coreutils-8.21-13.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/coreutils-8.21-13.fc19 Package coreutils-8.21-13.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing coreutils-8.21-13.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1208/coreutils-8.21-13.fc19 then log in and leave karma (feedback). coreutils-8.21-13.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. coreutils-8.21-21.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/coreutils-8.21-21.fc20 coreutils-8.21-21.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |
Version: coreutils 8.21.11 Behavior: The setup script /etc/profile.d/colorls.csh works fine in a stock F19 installation, but if a local admin adds a default shell setting of "noclobber" in a profile setting that runs before this script (as we do) then the script will error out with an error of: /tmp/.colorlsXXX: File exists. Cause: The script creates that temporary file with mktemp, but on the first write it uses only a single redirect (>), which fails when noclobber is set. Since the file is already created, I think we can safely use an append redirect (>>) in all cases where that file is written to, which works regardless of the state of the noclobber settting. Patch: 35c35 < if ( "$INCLUDE" != '' ) cat "$INCLUDE" > $TMP --- > if ( "$INCLUDE" != '' ) cat "$INCLUDE" >> $TMP