Include -Wunreachable-code when building.
[sysvinit.git] / doc / Changelog
1 sysvinit (2.89) UNRELEASED; urgency=low
2
3 [ Werner Fink ]
4 * Do not forget room for last NULL of new environment (was
5 local bug 35866)
6 * Handle deleted binaries in pidof (was local bug #34992)
7 * Allow init to delete extra environment variables (was local bug
8 #35858)
9 * Avoid that init double environment variables for its childs
10 (was local bug #35855)
11 * Remove man-db tag for encoding for canonical man
12 * Sulogin: try to detect the real device(s) used for the system console
13 /dev/console if but only if /dev/console is used. On Linux this can
14 be more than one device, e.g. a serial line as well as a virtual
15 console as well as a simple printer.
16 * Fix counting message lines in wall. Patch from Petr Lautrbach.
17 * Fix bad printf conversion specifier in wall. Patch from Sébastien Luttringer.
18 * Add patches from Openwall project. Thanks goes to Solar Designer.
19 * Add code to detect the system consoles with the help of the
20 new /proc/consoles files of linux kernel 2.6.38+
21 * Try to make utmpdump IPv6 valid, change based on suggestion from
22 Navdeep Bhatia (see local bug #32429)
23 * Fix signal and alarm handling based on the patch from Florent Viard.
24 (was local bug #32304)
25 * Add fix for Redhat bug #573346: last incorrectly displays IPv6
26 addresses (was local bug #29497)
27 * Correct fix for Debian bug #547073: use IUTF8 flag if defined
28 and if already set to make sure the utf-8 flag is not cleared
29 from the tty. Patch from Samuel Thibault.
30 * Include limits.h in killall.c to enforce definition of PATH_MAX
31 * Fix sysvinit bug #29758 Linker invocation should not contain
32 headers. Change based on patch from Elias Pipping.
33 * Add fix for Debian bug #580272: use return value 1 of
34 is_selinux_enabled() to determine if SELinux is enabled,
35 otherwise initialize SELinux and load the policy. Patch from
36 Petter Reinholdtsen.
37 * Make quotes visible in example of the manual page of fstab-decode
38 * Sulogin: enforce reconnection of stdin/stdout/stderr if a device
39 was specified.
40 * Sulogin: if zero is read at reading the passwd guess it's done.
41 * Sulogin: respect byte order that is do not mix chars and ints
42 * Shutdown: use PATH_DEFAULT as suggested by Paul Arthur in local bug #36101
43 * Killall5/pidof: handle strange names of executables (local bug #36252)
44 * Sulogin: be aware the crypt(3) may fail (local bug #36313)
45
46 [ Petter Reinholdtsen ]
47 * Next release will be 2.89dsf.
48 * Add #ifdef in bootlogd.c to avoid gcc warnings about unused
49 variable on non-linux platforms.
50 * Only set the VSWTC field for termios in init if it is available,
51 to get the source building on FreeBSD.
52 * Add some code to be able to detect programs even as user with
53 kernel 3.0 and above
54 * Improve message printed when signaling processes to stop.
55 Patch from Matias A. Fonzo at the dragora project.
56 * Rename internal functions warn() and shutdown() in the shutdown
57 binary to avoid surprising dynamic library name resolution
58 conflict with NSS modules. Patch from Richard Tollerton.
59 * Try harder to find libcrypt.*, even if there is no static library
60 available. Also look in /usr/lib/*/ for the library, to handle
61 Debian multiarch systems. Based on patch from Andrew Gregory.
62 * Adjust included headers to be compatible with the musl C
63 library. Patch from Matias A. Fonzo and Dragora.
64 * Move dovoid() macro from #ifdef__GLIBC__ to #ifdef __linux__,
65 to match the condutions of the place where it is used. Thanks
66 to Matias A. Fonzo for noticing.
67 * Define _XOPEN_SOURCE when building to get crypt() from <unistd.h>
68 instead of using <crypt.h> in sulogin.c, to get the source building
69 with the musl C library.
70 * Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS. If sysconf
71 returns an error, fall back to MAXSYMLINKS on platforms that
72 define it. Fixes build on Hurd. Patch from Justus Winter and
73 Debian.
74 * Adjust makefile to make it easier to link all binaries statically.
75 Patch from Matias A. Fonzo and Dragora.
76 * Rewrite findtty() in bootlogd.c to not chance working directory, to
77 reduce the amount of failure that can happin in that function.
78 * Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik
79 Andersson and Debian.
80 * Document length limit for the process field in the inittab. Patch
81 from Johannes Truschnigg and Debian.
82 * Fix typo in fstab-decode(8) font escape. Patch from Bjarni Ingi
83 Gislason and Debian.
84 * Port ifdown.c to FreeBSD. Patch from Guillem Jover and Debian.
85 * Drop dsf part from version number. It no longer make sense to keep.
86 * Remove obsolete/ directory from tarball. None of it have been useful
87 for many years.
88 * Make it possible to specify the initctl path as a compile time
89 define INIT_FIFO.
90 * Use narrowly scoped file descriptor for handling opened TTY in
91 spawn(). Patch from Michał Kulling.
92 * Check exit code from dup() in spawn() and log error if it fail.
93 Patch from Michał Kulling.
94
95 -- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010
96
97 sysvinit (2.88dsf) world; urgency=low
98
99 [ Petter Reinholdtsen ]
100 * Mention new home on Savannah in README.
101 * Revert change from Fedora/RedHat where the now obsolete command
102 INIT_CMD_CHANGECONS was introduced. Based on feedback and patch
103 from Bill Nottingham.
104 * Adjust makefile to make sure the install directories are created
105 before files are copied into them.
106 * Simplify build rules, based on patch from Mike Frysinger and Gentoo.
107 * Fix minor bug in optimizing of argument parsing. Based on
108 report from jakemus on freshmeat.
109 * Add casts to get rid of compiler warning about signed/unsigned issues.
110 * Change tty handling in init to make sure the UTF-8 flag is not cleared
111 on boot. Patch from Samuel Thibault.
112 * Add Makefile in toplevel directory.
113 * Print usage information when shutdown is used by non-root user.
114 Patch from Mike Frysinger and Gentoo.
115 * Sync shutdown manual page and usage information. Patch from Mike
116 Frysinger and Gentoo.
117 * Fix race condition in utmp writing. Patch from Gil Kloepfer via
118 Mike Frysinger and Gentoo.
119 * Rewrite findtty() in bootlogd to recursively search /dev/ for the
120 correct device, to handle terminal devices for example in /dev/pty/.
121 Patch from Debian.
122 * Make sure bootlogd findpty() returns an error value when it fails to
123 find a usable pty. Patch from Rob Leslie via Debian.
124 * Make sure bootlogd fflush() every line, even if asked not to flush
125 to disk using fdatasync(). Patch from Scott Gifford via Debian.
126 * Add compatibility code to handle old path "/etc/powerstatus" for a
127 while.
128 * Incude definition for MNT_DETACH which is missing in older GNU libc
129 headers.
130 * Do not strip binaries before installing them, to make it easier to
131 get binaries with debug information installed.
132
133 [ Werner Fink ]
134 * Add the comment from Andrea Arcangeli about the correct
135 place of setting the default childhandler within spawn().
136 * Make sure that newline is printed out for last(1) even
137 if an utmp record entry is truncated.
138 * Check if utmp not only exists but also is writable and delay
139 writing out of the utmp runlevel record if utmp is not writable.
140 * Be able to find libcrypt also on 64 bit based architectures.
141 * Add option -w to the last command to display the full user and
142 domain names in the output. Patch from Petr Lautrbach.
143 * Add a manual page for utmpdump as this tool is sometimes
144 very useful even if not intended for normal use.
145 * Use paths.h macros for wall
146 * Change path "/etc/powerstatus" to "/var/run/powerstatus"
147 * Detected also removable block devices at halt/reboot to be able
148 to flush data and send them the ATA standby command. This should
149 avoid data loss on USB sticks and other removable block devices.
150 * Flush block devices on halt/reboot if not done by the kernel.
151 * Set SHELL to /bin/sh in the environmant of shutdown.
152 * Retry to write out shutdown messages if interrupted.
153 * pidof/killall5 - make omit pid list a dynamic one.
154 * pidof - provide '-n' to skip stat(2) syscall on network based FS.
155 * init - avoid compiler warnings
156 * init - initialize console by using the macros from ttydefaults.h
157 * init - add the possiblity to ignore further interrupts from keyboard
158 * init - add the possiblity to set sane terminal line settings
159 * sulogin - add the possibility to reset the terminal io
160 * Fix some minor problems
161 * init - enable is_selinux_enabled() to detect selinuxfs
162 * Add fix for Debian bug #536574 -- Can be enabled by -DACCTON_OFF
163 * Add helper program fstab-decode to make it easier to handle
164 /etc/mtab content. Patch by Miloslav Trmac and Fedora.
165 * Add fix for Debian bug #335023 - Make sure TERM is set on FreeBSD.
166 * Add fix for Debian bug #374038 - Make it clear that shutdown -c can
167 only cancel a waiting shutdown, not an active one.
168 * Add note to pidof manual page about the use of readlink(2). Patch by
169 Bill Nottingham and Fedora.
170 * Add PAM patch contrib/notify-pam-dead.patch based on Debian bug
171 #68621, which will add PAM support for programs spawned by init on
172 the console like sulogin. Based on patch by Topi Miettinen. This
173 patch is not applied by default yet while we review its
174 usefullness. It is only helpful for session handling, as sulogin
175 do not use and will not use a PAM conv() function. The current
176 sulogin is able to handle DES as well as MD5, SHA, and Blowfish
177 encrypted passwords due using getpwnam(3).
178 * Move utmp/wtmp before the execvp() in spawn() to be sure to
179 use the correct pid even on a controlling tty
180 * Remaining problem is that the pid of the second fork() for
181 getting a controlling tty isn't that reported by spawn()
182 * Re-enable writting utmp/wtmp for boot scripts
183 * Extend sulogin to support additional encryption algorithms
184 * Re-enable maintenance message of sulogin
185 * Enable the sulogin fallback password check to handle MD5, SHA, and
186 Blowfish encrypted passwords in case of getpwnam(3) fails.
187 * sulogin picking the SELinux context was broken. Patch by Daniel Walsh
188
189 -- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010
190
191 sysvinit (2.87dsf) world; urgency=low
192
193 * Fix typos and do minor updates in the manual pages.
194 * Correct section of mountpoint(1).
195 * Document -e and -t options for telinit in init(8).
196 * Update address of FSF in the COPYRIGHT file.
197 * Document in halt(8) that -n might not disable all syncing.
198 Patch by Bill Nottingham and Fedora
199 * Adjust output from "last -x". In reboot lines, print endpoint
200 of uptime too. In shutdown lines print downtimes rather than
201 the time between downs. Fix typo in string compare in last.c.
202 Patch by Thomas Hood.
203 * Improve handling of IPv6 addresses in last. Patch from Fedora.
204 * Document last options in usage information, previously only
205 mentioned in the manual page.
206 * Add new option -F to last, to output full date string instead
207 of the short form provided by default. Patch from Olaf Dabrunz
208 and SuSe.
209 * Adjust build rules to make sure the installed binaries
210 are stripped.
211 * Increase the compiler warning level when building.
212 * Fix utmp/wtmp updating on 64-bit platforms. Patch by Bill
213 Nottingham and Fedora.
214 * Avoid unchecked return value from malloc() in utmpdump.
215 Patch from Christian 'Dr. Disk' Hechelmann and Fedora.
216 * Make sure to use execle and no execl when passing environment to
217 the new process. Patch from RedHat.
218 * Correct init to make sure the waiting status is preserved across
219 re-exec. Patch from RedHat.
220 * Correct init to avoid race condition when starting programs during
221 boot. Patch from SuSe.
222 * Allow 'telinit u' in runlevels 0 and 6. Patch from Thomas Hood.
223 * Change install rules to make pidof an absolute symlink. Patch from
224 Thomas Hood.
225 * Improve error message from init if fork() fail. Patch found in Suse.
226 * Add support for SE Linux capability handling. Patch from Manoj
227 Srivastava, adjusted to avoid aborting if SE policy was loaded in
228 the initrd with patch from Bill Nottingham and Fedora.
229 * Add -c option to pidof for only matching processes with the same
230 process root. Ignore -c when not running as root. Patch from
231 Thomas Woerner and Fedora.
232 * Adjust init to terminate argv0 with one 0 rather than two so that
233 process name can be one character longer. Patch by Kir Kolyshkin.
234 * Make sure bootlogd exit with non-error exit code when forking of
235 the child successfully.
236 * Add bootlogd option -s to make it possible to control the use of
237 fdatasync(). Patch from Thomas Hood.
238 * Add bootlogd option -c to tell it to create the log file if it does
239 not exist. Patch from Thomas Hood.
240 * Let bootlogd also look at ttyB* devices to work on HPPA. Patch
241 from Thomas Hood.
242 * Change init to use setenv() instead of putenv, make sure the PATH
243 value is usable on re-exec. Patch from Thomas Hood.
244 * Add usleep in killall5 after killing processes, to force the kernel
245 to reschedule. Patch from SuSe.
246 * Modify pidof to not print empty line if no pid was found.
247 * Modify init and sulogin to fix emergency mode's tty, making sure ^C
248 and ^Z work when booting with 'emergency' kernel option. Patch from
249 Samuel Thibault.
250 * Modify init to allow some time for failed opens to resolve themselves.
251 Patch from Bill Nottingham and Fedora.
252 * Modify init to shut down IDE, SCSI and SATA disks properly. Patches
253 from Sebastian Reichelt, Werner Fink and SuSe.
254 * Modify wall to use UT_LINESIZE from <utmp.h> instead of hardcoded
255 string lengths. Patch from SuSe.
256 * Change wall to make halt include hostname in output.
257 * Change killall to avoid killing init by mistake. Patch from SuSe.
258 * Change killall5 to use the exit value to report if it found any
259 processes to kill. Patch from Debian.
260 * Add option -o opmitpid to killall5, to make it possible to skip
261 some pids during shutdown. Based on patch from Colin Watson and
262 Ubuntu.
263 * Add references between killall5 and pidof manual pages. Patch from Debian.
264 * Modify killall to work better with user space file system, by
265 changing cwd to /proc when stopping and killing processes, and
266 avoiding stat() when the value isn't used. Also, lock process
267 pages in memory to avoid paging when user processes are stopped.
268 Patch from Debian and Goswin von Brederlow with changes by Kel
269 Modderman.
270 * Change shutdown to only accept flags -H and -P with the -h flag,
271 and document this requirement in the manual page.
272 * Change reboot/halt to work properly when used as a login shell.
273 Patch by Dale R. Worley and Fedora.
274 * Let sulogin fall back to the staticly linked /bin/sash if both roots
275 shell and /bin/sh fail to execute.
276
277 -- Petter Reinholdtsen <pere@hungry.com> Sun, 12 Jul 2009 19:58:10 +0200
278
279 sysvinit (2.86) cistron; urgency=low
280
281 * Fixed up bootlogd to read /proc/cmdline. Also keep an internal
282 linebuffer to process \r, \t and ^H. It is becoming useable.
283 * Applied trivial OWL patches
284 * Block signals in syslog(), since syslog() is not re-entrant
285 (James Olin Oden <joden@malachi.lee.k12.nc.us>, redhat bug #97534)
286 * Minor adjustements so that sysvinit compiles on the Hurd
287 * killall5 now skips kernel threads
288 * Inittab entries with both 'S' and other runlevels were broken.
289 Fix by Bryan Kadzban <bryan@kadzban.is-a-geek.net>
290 * Changed initreq.h to be more flexible and forwards-compatible.
291 * You can now through /dev/initctl set environment variables in
292 init that will be inherited by its children. For now, only
293 variables prefixed with INIT_ can be set and the maximum is
294 16 variables. There's also a length limit due to the size
295 of struct init_request, so it should be safe from abuse.
296 * Option -P and -H to shutdown set INIT_HALT=POWERDOWN and
297 INIT_HALT=HALT as environment variables as described above
298 * Add "mountpoint" utility.
299 * Slightly better algorithm in killall5.c:pidof()
300 * Added some patches from fedora-core (halt-usage, last -t,
301 sulogin-message, user-console)
302
303 -- Miquel van Smoorenburg <miquels@cistron.nl> Fri, 30 Jul 2004 14:14:58 +0200
304
305 sysvinit (2.85) cistron; urgency=low
306
307 * Add IPv6 support in last(1)
308 * Sulogin: even if the root password is empty, ask for a password-
309 otherwise there is no way to set a timeout.
310 * Removed support for ioctl.save.
311 * Turned of support for /etc/initrunlvl and /var/run/initrunlvl
312 * Fixed warts in dowall.c ("Dmitry V. Levin" <ldv@altlinux.org>)
313 * Fix init.c::spawn(). The "f" variable was used both as file descriptor
314 and waitpid(2) return code. In certain circumstances, this leads to
315 TIOCSCTTY with wrong file descriptor (Vladimir N. Oleynik).
316 * Fix fd leak in sulogin (Dmitry V. Levin).
317 * More error checking in all wait() calling code (Dmitry V. Levin).
318 * Fix argv[] initialization in spawn() (Dmitry V. Levin).
319 * Change strncpy to strncat in most places (Dmitry V. Levin).
320
321 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 15 Apr 2003 16:37:57 +0200
322
323 sysvinit (2.84) cistron; urgency=low
324
325 * Don't use /etc/initlvl interface for telinit; only use /dev/initctl,
326 and give a clear error when that fails.
327 * Add -i/--init command line flag to init - this tells init
328 'behave as system init even if you're not PID#1'. Useful for
329 testing in chroot/jail type environments.
330
331 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 27 Nov 2001 13:10:08 +0100
332
333 sysvinit (2.83) cistron; urgency=low
334
335 * Fix bug in shutdown where it didn't check correctly for a
336 virtual console when checking /etc/shutdown.allow
337 * Fix race condition in waitpid() [Andrea Arcangeli]
338 * Call closelog() after openlog()/syslog() since recent libc's
339 keep the logging fd open and that is fd#0 aka stdin.
340
341 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 2 Oct 2001 23:27:06 +0200
342
343 sysvinit (2.82) cistron; urgency=low
344
345 * Print out correct version number at startup.
346 * Fix spelling of initttab in init(8)
347
348 -- Miquel van Smoorenburg <miquels@cistron.nl> Thu, 23 Aug 2001 17:50:44 +0200
349
350 sysvinit (2.81) cistron; urgency=low
351
352 * Fix typo/bug in killall5/pidof, -o option failed to work since 2.79.
353 Reformatted source code to prevent this from happening again.
354 * shutdown.8: applied redhat manpage update
355 * sulogin: applied redhat sysvinit-2.78-sulogin-nologin.patch
356 * sulogin: applied redhat sysvinit-2.78-notty.patch
357 * sulogin: applied redhat sysvinit-2.78-sigint.patch
358
359 sysvinit (2.80) cistron; urgency=low
360
361 * Grammar/spelling fixes in shutdown.c (Christian Steinrueck)
362 * Don't set controlling tty for non-(sysinit,boot,single) runlevels
363
364 -- Miquel van Smoorenburg <miquels@cistron.nl> Thu, 26 Jul 2001 13:26:56 +0200
365
366 sysvinit (2.79) cistron; urgency=low
367
368 * New upstream version
369 * several fixes to wall by Tim Robbins <fyre@box3n.gumbynet.org>
370 * Several extra boundary checks by Solar Designer
371 * Make /dev/console controlling tty
372 * Stricter checks on ownership of tty by mesg(1)
373 * Documented and restricted -n option to wall(1)
374 * Make it compile with glibc 2.2.2
375 * Document IO redirection in wall manpage (closes: #79491)
376 * Update README (closes: #85650)
377 * Fix init.8 manpage (closes: #75268)
378 * Fix typo in halt(8) manpage (closes: #67875)
379 * Check time argument of shutdown(8) for correctness (closes: #67825)
380 * Check for stale sessions in last(1) (Chris Wolf <cwolf@starclass.com>)
381
382 -- Miquel van Smoorenburg <miquels@cistron.nl> Wed, 4 Jul 2001 15:04:36 +0200
383
384 sysvinit (2.78-2) frozen unstable; urgency=high
385
386 * Change "booting" to "reloading" message at reload
387 * Add "-z xxx" dummy command line argument (closes: #54717)
388
389 -- Miquel van Smoorenburg <miquels@cistron.nl> Fri, 11 Feb 2000 12:17:54 +0100
390
391 sysvinit (2.78-1) unstable; urgency=low
392
393 * 2.78 will be the new upstream version, I'm skipping 2.77
394 * Shutdown now calls sync before switching the runlevel to 0 or 6,
395 or before unmounting filesystems if -n was used (closes: #46461)
396 * Some cosmetic changes to init.c (closes: #32079)
397
398 -- Miquel van Smoorenburg <miquels@cistron.nl> Thu, 30 Dec 1999 20:40:23 +0100
399
400 sysvinit (2.77-2) unstable; urgency=low
401
402 * Fix last -i option
403
404 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 5 Oct 1999 21:51:50 +0200
405
406 sysvinit (2.77-1) unstable; urgency=low
407
408 * Write reboot record into utmp file as well to make rms happy
409 * Fork and dump core in / if SIGSEGV is received for debugging purposes
410 * Patch by Craig Sanders <cas@vicnet.net.au> for "last" -i option
411
412 -- Miquel van Smoorenburg <miquels@cistron.nl> Wed, 4 Aug 1999 11:16:23 +0200
413
414 sysvinit (2.76-4) unstable; urgency=low
415
416 * Change dowall.c to handle Unix98 ptys correctly
417 * Add comment in rcS about usage of setup.sh and unconfigured.sh
418 * Shutdown now removes nologin file just before calling telinit
419 * SEGV handler now tries to continue after sleep of 30 seconds.
420 On a 386-class processor it also prints out the value of EIP.
421 * Fix for racecondition in check_init_fifo() by Richard Gooch
422
423 -- Miquel van Smoorenburg <miquels@cistron.nl> Sat, 8 May 1999 17:22:57 +0200
424
425 sysvinit (2.76-3) frozen unstable; urgency=high
426
427 * Small bugfix to last.c courtesy of Danek Duvall <duvall@emufarm.ml.org>
428
429 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 12 Jan 1999 12:12:44 +0100
430
431 sysvinit (2.76-1) frozen unstable; urgency=high
432
433 * Fix bug in check_pipe() which crashes init on the Alpha.
434
435 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 3 Nov 1998 11:09:13 +0100
436
437 sysvinit (2.75-4) unstable; urgency=low
438
439 * Change sulogin password buffer to 128 characters.
440 * Don't print control characters in dowall.c
441 * Try to open getenv ("CONSOLE"), /dev/console and /dev/tty0 in order.
442 For backwards compatibility when you try to boot a 2.0.x kernel
443 with a linux > 2.1.70 /dev/console device.
444 * Change src/Makefile for non-debian systems (mainly, RedHat)
445 * Try to create /dev/initctl if not present; check every time to see
446 if the dev/ino of /dev/initctl has changed and re-open it. This should
447 help devfs a bit.
448 * Send SIGUSR1 to init at bootup to let it re-open /dev/initctl;
449 again in support of devfs.
450 * Moved pidof to /bin (it's only a link to killall5 anyway)
451
452 -- Miquel van Smoorenburg <miquels@cistron.nl> Mon, 5 Oct 1998 14:03:14 +0200
453
454 sysvinit (2.75-2) frozen unstable; urgency=medium
455
456 * Fix last.c again.
457 * Add check to see if /dev/initctl is really a FIFO
458 * In ifdown.c first down all shaper devices then the real devices
459
460 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 2 Jun 1998 22:43:01 +0200
461
462 sysvinit (2.75-1) frozen unstable; urgency=low
463
464 * Rewrote last.c to be much more memory friendly and correct,
465 thanks to Nick Andrew <nick@zeta.org.au> and
466 David Parrish <dparrish@zeta.org.au>
467 * Fixes bugs:
468 #21616: sysvinit: sulogin thinks md5 root password is bad
469 #21765: sysvinit: Typo in `killall5.c'
470 #21775: sysvinit: sysvinit does not support MD5 hashed passwords
471 #21990: /usr/bin/last: unnecessary memset and off-by-one bug
472 #22084: sysvinit 2.74-4: SIGPWR missing on sparc
473 #21900: init, powerfail events, and shutdown.allow
474 #21702: init 0 does not work as expected...
475 #21728: sysvinit: Typo in `init.c'
476 #22363: sysvinit: discrepance btw. manpage and /sbin/init
477
478 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 19 May 1998 11:02:29 +0200
479
480 sysvinit (2.74-4) frozen unstable; urgency=medium
481
482 * Add -o option to last to process libc5 utmp files.
483 * Buffer overflow fixed in init.c (not very serious; only exploitable
484 by root). Thanks to Chris Evans <chris@ferret.lmh.ox.ac.uk>
485
486 -- Miquel van Smoorenburg <miquels@cistron.nl> Wed, 15 Apr 1998 17:04:33 +0200
487
488 sysvinit (2.74-1) unstable; urgency=low
489
490 * Should compile with glibc 1.99 :)
491 * Change behaviour of reboot(1) and halt(1) so that the default when
492 the runlevel can't be determined is to call shutdown.
493 * Added re-exec patch from Al Viro (21 Feb 1998):
494 'U' flag added to telinit. It forces init to re-exec itself
495 (passing its state through exec, certainly).
496 May be useful for smoother (heh) upgrades.
497 24 Feb 1998, AV:
498 did_boot made global and added to state - thanks, Miquel.
499 Yet another file descriptors leak - close state pipe if
500 re_exec fails.
501
502 -- Miquel van Smoorenburg <miquels@cistron.nl> Thu, 12 Mar 1998 17:42:46 +0100
503
504 sysvinit (2.73-2) unstable; urgency=low
505
506 * Change _NSIG to NSIG for 2.1.x kernel includes.
507
508 -- Miquel van Smoorenburg <miquels@cistron.nl> Thu, 8 Jan 1998 16:01:02 +0100
509
510 sysvinit (2.73-1) unstable; urgency=low
511
512 * Use siginterrupt, now that system calls are restarted by default.
513 Main symptom was that the sulogin timeout didn't work but there
514 might have been more hidden problems.
515 * Kill process immidiately if turned off in inittab
516 * Fixed sulogin check on tty arg.
517 * Use strerror() instead of sys_errlist
518 * wall now supports a '-n' option to suppress [most of] the banner.
519 Debian doesn't use sysvinit's wall, but apparently Redhat does.
520 * Add '-F' (forcefsck) option to shutdown
521 * Close and reopen /dev/initctl on SIGUSR1 (mainly for a /dev in ram)
522
523 -- Miquel van Smoorenburg <miquels@cistron.nl> Sat, 3 Jan 1998 16:32:39 +0100
524
525 sysvinit (2.72-3) unstable; urgency=low
526
527 * Add extra fork() in dowall.c to avoid hanging in rare cases
528
529 -- Miquel van Smoorenburg <miquels@cistron.nl> Wed, 22 Oct 1997 14:44:00 +0200
530
531 sysvinit (2.72) unstable; urgency=low
532
533 * Applied manual page patches by Bill Hawes <whawes@star.net>. Thanks Bill!
534 * Applied patches to the sample Slackware scripts by
535 "Jonathan I. Kamens" <jik@kamens.brookline.ma.us>
536 * Fix halt and reboot runlevels 0 & 6 check.
537 * Only say "no more processes left in runlevel x" once
538 * Fix race condition with SIGCHLD in spawn()
539 (thanks to Alon Ziv <alonz@CS.Technion.AC.IL>)
540 * Compress all manpages (missed 2)
541 * Compiled for libc6
542 * Added poweroff patch by Roderich Schupp <rsch@ExperTeam.de>
543
544 -- Miquel van Smoorenburg <miquels@cistron.nl> Sun, 12 Oct 1997 17:20:17 +0200
545
546 sysvinit (2.71-2) frozen unstable; urgency=low
547
548 * Print 2.71 instead of 2.70 on startup :)
549
550 -- Miquel van Smoorenburg <miquels@cistron.nl> Mon, 5 May 1997 12:45:25 +0200
551
552 sysvinit (2.71-1) frozen unstable; urgency=high
553
554 * Added code for updwtmp() in utmp.c for glibc (2.0.3)
555 * Fixed all programs to use functions from utmp.c and getutent()
556 * Do not try to clean up utmp in init itself (Bug#9022)
557 * Removed sync() from main loop.
558 * Hopefully fixes bug #8657 (shutdown signal handling)
559
560 -- Miquel van Smoorenburg <miquels@cistron.nl> Sat, 26 Apr 1997 19:57:27 +0200
561
562 sysvinit (2.70-1) unstable; urgency=low
563
564 * Respawn fix
565 * Removed StUdLy CaPs from source code
566 * Moved files in source archive around
567 * Fixes for glibc (utmp handling, signal handling).
568 * Fixed '-d' option to last (now also works without '-a').
569 * Added extra checking in last.c to prevent showing dead entries
570
571 -- Miquel van Smoorenburg <miquels@cistron.nl> Fri, 7 Feb 1997 15:31:30 +0100
572
573 sysvinit (2.69-1) frozen unstable; urgency=medium
574
575 * Fixed bug that can throw X in a loop (or any other app that reads from
576 /dev/tty0)
577
578 -- Miquel van Smoorenburg <miquels@cistron.nl> Sun, 1 Dec 1996 15:32:24 +0100
579
580 sysvinit (2.67-1) frozen unstable; urgency=high
581
582 * Fixes problem with /dev/console being controlling terminal of some
583 daemons
584 * Puts copyright file in the right place
585
586 -- Miquel van Smoorenburg <miquels@cistron.nl> Fri, 15 Nov 1996 12:23:33 +0100
587
588 sysvinit (2.66-1) unstable; urgency=medium
589
590 * Skipped 2.65. A development 2.65 got out by accident and is apparently
591 being used..
592 * Also compiles and runs with GNU libc (and on the Alpha)
593 * Fixed dowall.c not to exit when getpwuid() fails and uid == 0.
594 * Fixed init panic'ing on empty lines in /etc/inittab
595 * Changed default PATH to include /usr/local/sbin
596 * Set /dev/console as controlling terminal for sysinit,bootwait,wait,powerwait
597 This allows using ^C to interrupt some parts of eg the boot process.
598 * Remove old symlink in /var/log/initlvl; let init check both
599 /var/log and /etc itself.
600
601 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 29 Oct 1996 13:46:54 +0100
602
603 2.66 29-Oct-1996
604 - Skipped 2.65. A development 2.65 got out by accident and is apparently
605 being used..
606 - Fixed dowall.c not to exit when getpwuid() fails and uid == 0.
607 - Fixed init panic'ing on empty lines in /etc/inittab
608 - Changed default PATH to include /usr/local/sbin
609 - Ported to Linux/Alpha and GNU libc.
610 - Set /dev/console as controlling terminal for sysinit,bootwait,wait,powerwait.
611 This allows using ^C to interrupt some parts of eg the boot process.
612 - Remove old symlink in /var/log/initlvl; let init check both
613 /var/log and /etc itself.
614
615 2.64 28-Jun-1996
616 - Init checks CONSOLE environment variable on startup (overrides /dev/console)
617 - Init sets CONSOLE variable for all its children.
618 - Wtmp(): when zeroing out old utmp entries, keep ut_id field
619 - Wtmp(): try to re-use ut_id field if possible.
620 - SetTerm(): only read from /etc/ioctl.save if written once.
621 - Included start-stop-daemon, C version (source only).
622 - Fixed wait() for the emergency shell.
623 - killall5: ignore signal before doing kill(-1, pid).
624
625 2.63 14-Jun-1996
626 - Fixed preinst script for Debian
627 - Fixed init.c to become init daemon if name is init.new
628 - Fixed pidof to not return PIDs of shell scripts
629
630 2.62-2 09-Jun-1996
631 - Changed debian /etc/init.d/boot script to create a nologin file
632 at boot and to remove it just before going multiuser.
633
634 2.62 31-May-1996
635 - Decided to release a 2.62 version with a BIG WARNING about upgrading
636 init in it. Will send a patch to Linus for the linux/Documentation/Changes
637 file so that 2.62 or later is mentioned as the version to upgrade to.
638 - Added docs for Slackware
639
640 2.61-3 29-May-1996
641 - Fixed debian/etc/init.d/network for the lo device.
642 - Added "-xdev" to the cd /tmp && find in debian/etc/init.d/boot
643 - Made remove time for files in /tmp configurable.
644
645 2.61 29-Apr-1996
646 - Changed /etc/init.d/boot script again
647 - Fixed problem in init.c with trailing whitespace after entries in inittab
648 - Fixed killall5 problems
649 - Added manpage for lastb
650 - Added SHELL= environment variable to sulogin
651 - Fixed sulogin & shadow problems
652 - Added timeout option to sulogin
653
654 2.60-2 16-Apr-1996
655 - Fixed sulogin (didn't work if root wasn't first entry in shadow file)
656 - Fixed mesg for systems with "tty" group (such as Debian)
657 - Fixed nsyslog() in killall5.c
658
659 2.60 01-Apr-1996
660 - Fixed race condition in init.c, resulting in hanging shutdowns.
661 Courtesy of Max Neunhoeffer <Max.Neunhoeffer@urz.uni-heidelberg.de>.
662 - Fixed debian/etc/init.d/boot for swapon and mdadd
663 - Added architecture to debian.control
664 - Added manpages for rc.boot and rc.local
665 - Updated inittab manpage for 4-character runlevel field
666 - Added debian replaces for bsdutils < version_without_mesg
667 - Fixed init.c so that it also works with kernels 1.3.81 and up
668
669 2.59 10-Mar-1996
670 - Init logs less to syslog (suspected to hang in syslog() or openlog() )
671 - removed closelog() from init.c
672 - removed time check of runlevel record in halt.
673 - Added options to last to get hostname from ut_addr field
674 - Added last and mesg to installation targets
675 - rewrote /etc/init.d/boot a bit.
676
677 2.58-2 04-Jan-1996
678 - Changed etc/init.d/rc to do a stty onlcr
679 - Added /var/log/initrunlvl symlink
680
681 2.58-1 31-Dec-1995
682 - Added the latest debian files.
683 - Added support for 4-character id fields (if you have libc5).
684 - Fixed pidof (in killall5) parsing of /proc/.../stat
685 - Save restore GMT setting in /etc/init.d/boot
686
687 2.57d 03-Dec-1995
688 - Added sulogin
689 - Added "-b" flag to init, gives a shell before
690 anything else (in case the startup scripts are screwed)
691 - Moved fastboot to /fastboot
692 - Folded in Debian patches.
693 - Removed old scripts
694 - Added debian /etc/directory.
695
696 2.57c 08-Oct-1995
697 - Changed over to init_request (with initreq.h)
698 - Processes no longer killed when "process" field
699 changes, change takes effect after next respawn.
700
701 2.57b xx-Aug-1995
702 - Bugfix release for Debian and Slackware 3.0
703
704 2.57a 10-Jul-1995
705 - Fixed race condition init init.c wrt got_chld
706 - Fixed one-off for malloc in killall5.c
707 - Changed dowall.c
708 - Console code: no relink to /dev/systty on CTRL-ALT-DEL)
709
710 2.57 22-May-1995
711 - Changed a few things here and there, didn't
712 really document it :)
713
714 2.55 17-Jan-1995
715 - Added option to shutdown to run standalone.
716
717 2.54 12-Jan-1995
718 - Added GNU copyrigh to all *.[ch] files.
719 - added /etc/initscript
720 - reboot and halt now call shutdown in runlevels 1-5
721 - Can run from read-only root (CDROM)
722
723 2.53 10-Oct-1994
724 - Renamed pidof to killall5, updated all scripts to
725 use killall5 instead of kill -1 ....
726 - Rewrote scripts to use this, and some general changes.
727 - Added SysV command line compatibility to shutdown.
728
729 2.52 30-Aug-1994
730 - Added `powerfailnow' keyword, for when UPS battery is low.
731 - Updated `last'.
732 - Fixed utmp handling (wrt. CLEAN_UTMP)
733 TODO:
734 * Make last compatible with GNU/BSD (long options?)
735 * update powerd
736 * remote SIGPWR broadcast? in powerd? (with priv. port)
737 * remote shutdown
738
739 2.50 14-Feb-1994
740 - Ignores unknown command line arguments.
741 - Modelled more after the "real" sysVinit
742 - Lots of changes all over the place.
743 (like showing runlevel in "ps" listing, logging
744 runlevel into utmp file etc)
745 - now using "reliable" signals instead of V7 style.
746 - Updated all scripts. Examples are in two directories:
747 etc (normal) and etc-sysv (sysv style scripts).
748 - runlevel 0 = halt, 1 = single user, 6 = reboot.
749 - added support for serial console.
750 - updated Propaganda, manpages.
751 - added shutdown access control.
752
753 2.4 24-May-93
754 - Send out the official version into the world as
755 SysVinit-2.4.tar.z.
756
757 2.4g 15-May-93
758 - Changed init to really catch SIGPWR 'cause we
759 hooked up an UPS to the Linux machine. The
760 keyword for catching the TreeFingerSalute is
761 now "ctrlaltdel" instead of "power{wait,fail}".
762
763 2.4a 22-Apr-93
764 - Fixed last to reckognize BSD style wtmp logging.
765 - Changed init to write wtmp records that are
766 SysV compliant but are also reckognized by the
767 BSD last. Added a '+' option to the 'process'
768 field of inittab, for getties that want to do
769 their own utmp/wtmp housekeeping (kludge!).
770 - Now accepts a runlevel on the command line,
771 and reckognizes the 'auto' argument. (Sets the
772 environment variable AUTOBOOT to YES)
773
774 2.2.3 24-Mar-93
775 - Ripped out the 'leave' action. To difficult, and
776 unneeded.
777 - Going single user now kills _all_ processes.
778 - Added '-t secs' option to all commands.
779 - This version is stable enough to post.
780
781 2.2 02-Mar-93
782 - Made wait()'s asynchronous
783 - Changed whole thing to one big state machine
784 - Now using 'pseudo levels' # & * for SYSINIT & BOOT
785 - Added a new type of 'action', called leave. This
786 process will be executed when the system goes from a
787 runlevel specified in it's runlevel field to a
788 level that's not. Nice to bring down NFS and the like.
789
790 2.1 28-Jan-93
791 - Fixed a bug with 'boot' and 'once'.
792 - Check 'initdefault' for validity.
793 - Reckognizes "single" as command line argument.
794 - Retries execvp with 'sh -c exec ..' if command
795 is a shell script. (shouldn't execvp do this?)
796 - Added patches to use syslog if defined.
797
798 2.0 08-Dec-92
799 - Rewrote the code totally, so started with a new
800 version number.
801 - Dropped Minix support, this code now is Linux - specific.
802 - With TEST switch on, this init & telinit can
803 run standalone for test purposes.
804
805 1.3, 05-Jul-92
806 - Got a 386, so installed Linux. Added 'soft' reboot
807 to be default under linux. Fixed some typos.
808
809 1.2, 16-Jun-92
810 - Bugreport from Michael Haardt ; removed deadlock
811 and added 'waitpid' instead of 'wait' for SYSV.
812
813 1.1, 30-Apr-92
814 - Read manual wrong: there is no 'action' field called
815 process, but all entries are of type process. Every
816 'process' get exec'ed by /bin/sh -c 'exec command'.
817 - Rapidly respawning processes are caught in the act.
818 - _SYSV support is really Linux support,
819 done by poe@daimi.aau.dk on 25-Mar-92.
820
821 1.0, 01-Feb-92
822 - Initial version, very primitive for the Minix
823 operating system. Required some mods. to the
824 kernel.
825