sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig
- Date: 22 Jul 2006 19:40:18 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=12836
------- Additional Comments From dmlb2000 AT gmail.com 2006-07-22 14:40 -------
Okay I've figured out what's going on and am posting results...
1) The files left behind are from the init.d spell running sedit which in turn
runs sed -i
2) sed in order to do an inplace program calls mkstemp to open a new file that
it can dump the output to.
3) Then it calls rename of the temp file to the input file, basically what we
used to do when sed didn't have the -i option (iirc)
When sed calls mkstemp glibc fails to look into installwatch for an
over-riding
function (which is how we do the magic of staging).
I've done several attemps to fix this with installwatch.
1) I was honestly perplexed that mkstemp didn't call open strace said open was
called... but the glibc code says otherwise...
internally glibc in order to protect itself (and to give me more grief when
trying to overload functions) defines and uses a hidden open called __open
that
can't be touched by overloading
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-
[SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig,
bugzilla-daemon, 07/11/2006
- <Possible follow-up(s)>
- [SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig, bugzilla-daemon, 07/22/2006
- [SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig, bugzilla-daemon, 07/23/2006
- [SM-Sorcery-Bugs] [Bug 12836] STAGE ROOT: cast init.d leaves tmp files in /etc/sysconfig, bugzilla-daemon, 07/23/2006
Archive powered by MHonArc 2.6.24.