Summary: | rc-scripts fail with noclobber bash | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jesús P Rey (Chuso) <gentoo> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jesús P Rey (Chuso)
2004-12-27 10:08:21 UTC
perhaps the better fix is to disable noclobber in /sbin/runscript.sh hrm, you never mentioned what baselayout you were using, and it seems to work fine for me: root@phear 0 ~ # set -o noclobber root@phear 0 ~ # echo > f root@phear 0 ~ # echo > f -bash: f: cannot overwrite existing file root@phear 0 ~ # /etc/init.d/iptables save * Saving iptables state ... [ ok ] root@phear 0 ~ # /etc/init.d/iptables pause * Saving iptables state ... [ ok ] * Stopping firewall ... [ ok ] root@phear 0 ~ # /etc/init.d/iptables start * Loading iptables state and starting firewall ... * Restoring iptables ruleset [ ok ] > perhaps the better fix is to disable noclobber in /sbin/runscript.sh Yes, it looks a smarter sollution ;) At least /usr/sbin/etc-update also needs this fix > hrm, you never mentioned what baselayout you were using, and it seems to work fine for me The iptables POC I posted was reproduced with sys-apps/baselayout-1.9.4-r6 and net-firewall/iptables-1.2.11-r3 ok, well try again with 1.11.x (that's what i tested with) etc-update is a different issue, that has nothing to do with rc-scripts (it's part of portage) Sorry, allexport must also be activated. With noclobber on and allexport on is when this error happens. ok, that explains it a bit more ... but unless someone can propose a clean solution to prevent the allexport option from screwing things up, we arent going to waste energy on this allexport can break via shell options or aliases or bash functions |