Commit Graph
75 Commits
Author SHA1 Message Date
Petter Reinholdtsen 3f98f493ff Correct remote repo URL. 2018-02-17 14:44:05 +00:00
Petter Reinholdtsen 94c1fedd26 Extend migration script to handle startpar and insserv too. 2018-02-12 06:23:20 +00:00
Petter Reinholdtsen f897dbed3b Remove obsolete FIXME from migration script. 2018-02-11 22:34:43 +00:00
Petter Reinholdtsen beb8bd3425 Make sure tags are migrated. 2018-02-11 22:32:30 +00:00
Petter Reinholdtsen 5e304c9469 Start on script to migrate from subversion to git. 2018-02-11 09:55:10 +00:00
Petter Reinholdtsen 6d359d7592 Use https link to project page. 2018-02-11 09:22:35 +00:00
Petter Reinholdtsen 959397cf9a Improve nroff formatting of init(8) manual page.
Based on patch from Bjarni Ingi Gislason in
<URL: https://bugs.debian.org/890041 >.
2018-02-11 09:20:47 +00:00
Petter Reinholdtsen d972463609 Include -Wunreachable-code when building. 2014-02-28 13:18:49 +00:00
Petter Reinholdtsen ca4561271e Check exit code from dup() in spawn() and log error if it fail.
Patch from Michał Kulling.
2014-02-10 22:47:27 +00:00
Petter Reinholdtsen d53cccb542 Use narrowly scoped file descriptor for handling opened TTY in
spawn().  Patch from Michał Kulling.
2014-02-10 22:44:15 +00:00
Petter Reinholdtsen da988bb28e Make it possible to specify the initctl path as a compile time define INIT_FIFO. 2014-02-07 23:27:39 +00:00
Petter Reinholdtsen 4811afc88b Remove obsolete/ directory from tarball. None of it have been useful for many years. 2014-02-07 19:16:41 +00:00
Petter Reinholdtsen 86c85e2330 Add 'make dist' target to get a tarball to test in addition to the upload target. 2014-02-07 19:13:52 +00:00
Petter Reinholdtsen 67710ce13b Drop dsf part from version number. It no longer make sense to keep. 2014-02-07 19:04:25 +00:00
Petter Reinholdtsen 303f3465f6 Port ifdown.c to FreeBSD. Patch from Guillem Jover and Debian. 2014-02-07 17:55:37 +00:00
Petter Reinholdtsen 58b3b75728 Fix typo in fstab-decode(8) font escape. Patch from Bjarni Ingi
Gislason and Debian.
2014-02-07 17:44:15 +00:00
Petter Reinholdtsen a05987e281 Document length limit for the process field in the inittab. Patch
from Johannes Truschnigg and Debian.
2014-02-07 17:41:58 +00:00
Petter Reinholdtsen 1b91c378b9 Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik
Andersson and Debian.
2014-02-07 17:03:04 +00:00
Petter Reinholdtsen 3f08c42b06 Make sure to report an error if chdir(/) fail. 2014-02-07 13:45:06 +00:00
Petter Reinholdtsen de1344feb8 Rewrite findtty() in bootlogd.c to not chance working directory, to
reduce the amount of failure that can happin in that function.
2014-02-07 11:06:57 +00:00
Petter Reinholdtsen cc3a4e2f9e Avoid reusing open file descriptor to make it easier to pinpoint Coverity CID 1164479 resource leak. 2014-02-07 09:50:14 +00:00
Petter Reinholdtsen 6ba8311144 Get more help from gcc, add -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 and -fstack-protector. 2014-02-07 08:00:58 +00:00
Petter Reinholdtsen a7bf0bf7e9 Remove unused variable realuid from main(). 2014-02-07 06:57:11 +00:00
Petter Reinholdtsen fb143cdcb9 Remove unused variable serial from tcfinal(). 2014-02-07 06:55:53 +00:00
Petter Reinholdtsen b547736c2c Avoid setting unused value and trick scan-build from clang into not warn about apparenly unused value. 2014-02-05 13:24:18 +00:00
Petter Reinholdtsen b8e970ca10 Explain why maxsymlinks() exist. 2014-02-05 13:23:08 +00:00
Petter Reinholdtsen 992c7a70d7 No use checkinf if env is true in the branch where it is false (Coverity CID 1164462). 2014-01-28 22:29:30 +00:00
Petter Reinholdtsen 8478327498 Adjust makefile to make it easier to link all binaries statically.
Patch from Matias A. Fonzo and Dragora.
2014-01-28 22:11:34 +00:00
Petter Reinholdtsen 5421d713ae Adjust more included headers to be compatible with the musl C
library.  Patch from Matias A. Fonzo and Dragora.
2014-01-28 22:07:30 +00:00
Petter Reinholdtsen 834bcebcaf Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS. If sysconf
returns an error, fall back to MAXSYMLINKS on platforms that
define it.  Fixes build on Hurd.  Patch from Justus Winter and
Debian.
2014-01-28 10:13:10 +00:00
Petter Reinholdtsen c26aaa4410 Define _XOPEN_SOURCE when building to get crypt() from <unistd.h> instead of using <crypt.h> in sulogin.c, to get the source building with the musl C library. 2014-01-27 22:05:54 +00:00
Petter Reinholdtsen 52b92185de Move dovoid() macro from #ifdef__GLIBC__ to #ifdef __linux__, to match the condutions of the place where it is used. Thanks to Matias A. Fonzo for noticing. 2014-01-27 21:55:57 +00:00
Petter Reinholdtsen f11cdf9554 Adjust included headers to be compatible with the musl C library. Patch from Matias A. Fonzo and Dragora. 2014-01-26 22:00:42 +00:00
Petter Reinholdtsen 2d0b513b8a Make sure FILE pointer returned by hdopen() is not leaked even if the
pointer returned can be casted to a negative long value (Coverity CIDs
1164478 and 1164477).
2014-01-26 16:40:03 +00:00
Petter Reinholdtsen 7d6e3683b0 Make sure logintime string can never overflow (Coverity CID 1164485). 2014-01-26 13:38:51 +00:00
Petter Reinholdtsen ae7c73ec7f Make sure cmdline string always is null terminated, even if it is very long (Coverity CID 1164484). 2014-01-26 13:29:43 +00:00
Petter Reinholdtsen 1c9808ec42 Close open file descriptor if the version is wrong (Coverity CID 1164481). 2014-01-26 09:58:04 +00:00
Petter Reinholdtsen 568c01bbb5 Document a fall through case block (Coverity CID 1164467). 2014-01-26 09:41:51 +00:00
Petter Reinholdtsen d2f82534cf Try harder to find libcrypt.*, even if there is no static library
available.  Also look in /usr/lib/*/ for the library, to handle
Debian multiarch systems.  Based on patch from Andrew Gregory.
2014-01-25 21:57:25 +00:00
Petter Reinholdtsen 45660f6ee6 Rename internal functions warn() and shutdown() in the shutdown
binary to avoid surprising dynamic library name resolution
conflict with NSS modules.  Patch from Richard Tollerton.
2014-01-25 21:50:09 +00:00
Petter Reinholdtsen ffcb38faae Fix typo in changelog text. 2014-01-25 21:25:21 +00:00
Petter Reinholdtsen 571c45f3e6 Improve message printed when signaling processes to stop. Patch from Matias A. Fonzo at the dragora project. 2014-01-25 21:20:22 +00:00
Petter Reinholdtsen cdb70c3a56 Only set the VSWTC field for termios in init if it is available, to get the source building on FreeBSD. 2010-04-27 19:51:01 +00:00
Petter Reinholdtsen 608673d2e3 Add #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux platforms. 2010-04-27 19:43:17 +00:00
Petter Reinholdtsen 9abf8cc828 The next release will be 2.89. 2010-04-27 14:33:32 +00:00
Petter Reinholdtsen 208f7a52f8 Remove obsolete changelog entry. 2010-04-11 09:25:54 +00:00
Petter Reinholdtsen 59b0f661c6 Merge PAM related changelog entries. 2010-04-11 09:03:03 +00:00
Petter Reinholdtsen d32b28e44e Do not strip binaries before installing them, to make it easier to get binaries with debug information installed. 2010-04-11 08:50:10 +00:00
Petter Reinholdtsen b6ecd1eadc Incude definition for MNT_DETACH which is missing in older GNU libc headers. 2010-04-11 07:42:27 +00:00
Petter Reinholdtsen 66299c783d Add compatibility code to handle old path /etc/powerstatus for a while. 2010-04-11 07:41:25 +00:00
Petter Reinholdtsen 8517410f31 Mention where the license text is on Debian systems. 2010-03-22 19:43:23 +00:00
Petter Reinholdtsen 0ba62f4e38 Mention project mailing list in the README file too. 2010-03-20 08:23:51 +00:00
Petter Reinholdtsen fb937f2532 Fix typo. 2010-03-20 08:22:48 +00:00
Petter Reinholdtsen 19344a389c Merge in preparation of new release. 2010-03-20 07:32:19 +00:00
Petter Reinholdtsen 61024466a2 Merge changelogs. 2009-11-24 17:37:31 +00:00
Petter Reinholdtsen 10a85c1427 Get rid of signed/unsigned warning. 2009-11-22 22:36:29 +00:00
Petter Reinholdtsen ecb32a254f Leftover. 2009-11-22 22:32:54 +00:00
Petter Reinholdtsen 5da772c28f Make sure bootlogd fflush() every line, even if asked not to flush
to disk using fdatasync().  Patch from Scott Gifford via Debian.
2009-11-22 22:23:14 +00:00
Petter Reinholdtsen 8debc401f8 Make sure bootlogd findpty() returns an error value when it fails to
find a usable pty.  Patch from Rob Leslie via Debian.
2009-11-22 22:22:09 +00:00
Petter Reinholdtsen 5b95f110af Rewrite findtty() in bootlogd to recursively search /dev/ for the
correct device, to handle terminal devices for example in /dev/pty/.
Patch from Debian.
2009-11-22 22:21:02 +00:00
Petter Reinholdtsen f8801cbcf1 Get rid of warning about unused argument fromshutdown, and make sure the wall string isn't changed by the wall() function. 2009-11-22 22:05:53 +00:00
Petter Reinholdtsen 093ad0026b Hide unused variable when not building with WITH_SELINUX. 2009-11-22 21:53:37 +00:00
Petter Reinholdtsen de91f43eb8 Fix race condition in utmp writing. Patch from Gil Kloepfer via
Mike Frysinger and Gentoo.
2009-11-22 21:03:03 +00:00
Petter Reinholdtsen b80d3844c1 Simplify build rules, based on patch from Mike Frysinger and Gentoo. 2009-11-20 22:55:47 +00:00
Petter Reinholdtsen d56e3c239e Sync shutdown manual page and usage information. Patch from Mike
Frysinger and Gentoo.
2009-11-20 22:33:35 +00:00
Petter Reinholdtsen 6bf849d01d Print usage information when shutdown is used by non-root user. Patch from Mike Frysinger and Gentoo. 2009-11-14 21:35:42 +00:00
Petter Reinholdtsen 78f4178c4d Mention new home on Savannah in README. 2009-11-14 21:33:43 +00:00
Petter Reinholdtsen bb3ff476da Add Makefile in toplevel directory. 2009-11-14 21:31:20 +00:00
Petter Reinholdtsen 0088601eef Change tty handling in init to make sure the UTF-8 flag is not cleared on boot. Patch from Samuel Thibault. 2009-11-14 21:28:32 +00:00
Petter Reinholdtsen 6d894fd45b Add casts to get rid of compiler warning about signed/unsigned issues. 2009-11-14 21:27:13 +00:00
Petter Reinholdtsen 8caa4e87f5 Fix minor bug in optimizing of argument parsing. Based on report from jakemus on freshmeat. 2009-11-14 21:12:00 +00:00
Petter Reinholdtsen 483db5bc72 Adjust makefile to make sure the install directories are created before files are copied into them. 2009-11-14 21:09:19 +00:00
Petter Reinholdtsen cd2937d3b7 Revert change from Fedora/RedHat where the now obsolete command
INIT_CMD_CHANGECONS was introduced.  Based on feedback and patch
from Bill Nottingham.
2009-11-14 21:00:43 +00:00
Petter Reinholdtsen 7d5009103e Next version will be 2.88. 2009-11-14 20:52:17 +00:00
Petter Reinholdtsen 2fe47a3c9f Drop hurd specific dependency on libc0.3 (>= 2.3.2.ds1-12). It is
no longer needed according to Michael Bunk.  Patch from Michael
Biebl.
2009-09-10 08:28:49 +00:00