Bug#515595: [Pkg-sysvinit-devel] Bug#515595: /sbin/runinit confused over runlevel

2009-07-24 Thread Henrique de Moraes Holschuh
On Fri, 24 Jul 2009, Petter Reinholdtsen wrote: > I guess we could extend init/runlevel to track this information. > Would have to extend /dev/initctl protocol and make runlevel suid > root, I guess. Do init know about the previous runlevel? If not, it > would have to be extended to have this inf

Bug#515595: /sbin/runinit confused over runlevel

2009-07-24 Thread Petter Reinholdtsen
[Petter Reinholdtsen] > I believe runlevel uses /var/run/*tmp, and guess its content is bogus. > Any idea what could mess up the utmp/wtmp files? It is calling setutent()/getutent() to find the runlevel information, and this reads /var/run/utmp to get the current status. No idea what could mess u

Bug#515595: [Pkg-sysvinit-devel] Bug#515595: Bug#515595: /sbin/runinit confused over runlevel

2009-02-20 Thread Henrique de Moraes Holschuh
On Mon, 16 Feb 2009, Petter Reinholdtsen wrote: > [Martin F Krafft] > > /sbin/runlevel is obviously confused, while /sbin/init seems to know > > precisely what the runlevel is: > > I believe runlevel uses /var/run/*tmp, and guess its content is bogus. > Any idea what could mess up the utmp/wtmp fi

Bug#515595: [Pkg-sysvinit-devel] Bug#515595: /sbin/runinit confused over runlevel

2009-02-16 Thread Petter Reinholdtsen
[Martin F Krafft] > /sbin/runlevel is obviously confused, while /sbin/init seems to know > precisely what the runlevel is: I believe runlevel uses /var/run/*tmp, and guess its content is bogus. Any idea what could mess up the utmp/wtmp files? Happy hacking, -- Petter Reinholdtsen -- To UNSUB

Bug#515595: /sbin/runinit confused over runlevel

2009-02-16 Thread martin f krafft
Package: sysvinit Version: 2.86.ds1-61 Severity: important File: /sbin/runlevel /sbin/runlevel is obviously confused, while /sbin/init seems to know precisely what the runlevel is: piper:/var/run# strace -fo /tmp/runlevel.strace /sbin/runlevel unknown piper:/var/run# ps -fp1 UIDPI