d972463609Include -Wunreachable-code when building.
Petter Reinholdtsen
2014-02-28 13:18:49 +0000
ca4561271eCheck exit code from dup() in spawn() and log error if it fail. Patch from Michał Kulling.
Petter Reinholdtsen
2014-02-10 22:47:27 +0000
d53cccb542Use narrowly scoped file descriptor for handling opened TTY in spawn(). Patch from Michał Kulling.
Petter Reinholdtsen
2014-02-10 22:44:15 +0000
da988bb28eMake it possible to specify the initctl path as a compile time define INIT_FIFO.
Petter Reinholdtsen
2014-02-07 23:27:39 +0000
4811afc88bRemove obsolete/ directory from tarball. None of it have been useful for many years.
Petter Reinholdtsen
2014-02-07 19:16:41 +0000
86c85e2330Add 'make dist' target to get a tarball to test in addition to the upload target.
Petter Reinholdtsen
2014-02-07 19:13:52 +0000
67710ce13bDrop dsf part from version number. It no longer make sense to keep.
Petter Reinholdtsen
2014-02-07 19:04:25 +0000
303f3465f6Port ifdown.c to FreeBSD. Patch from Guillem Jover and Debian.
Petter Reinholdtsen
2014-02-07 17:55:37 +0000
58b3b75728Fix typo in fstab-decode(8) font escape. Patch from Bjarni Ingi Gislason and Debian.
Petter Reinholdtsen
2014-02-07 17:44:15 +0000
a05987e281Document length limit for the process field in the inittab. Patch from Johannes Truschnigg and Debian.
Petter Reinholdtsen
2014-02-07 17:41:58 +0000
1b91c378b9Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik Andersson and Debian.
Petter Reinholdtsen
2014-02-07 17:03:04 +0000
3f08c42b06Make sure to report an error if chdir(/) fail.
Petter Reinholdtsen
2014-02-07 13:45:06 +0000
de1344feb8Rewrite findtty() in bootlogd.c to not chance working directory, to reduce the amount of failure that can happin in that function.
Petter Reinholdtsen
2014-02-07 11:06:57 +0000
cc3a4e2f9eAvoid reusing open file descriptor to make it easier to pinpoint Coverity CID 1164479 resource leak.
Petter Reinholdtsen
2014-02-07 09:50:14 +0000
6ba8311144Get more help from gcc, add -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 and -fstack-protector.
Petter Reinholdtsen
2014-02-07 08:00:58 +0000
fb143cdcb9Remove unused variable serial from tcfinal().
Petter Reinholdtsen
2014-02-07 06:55:53 +0000
b547736c2cAvoid setting unused value and trick scan-build from clang into not warn about apparenly unused value.
Petter Reinholdtsen
2014-02-05 13:24:18 +0000
992c7a70d7No use checkinf if env is true in the branch where it is false (Coverity CID 1164462).
Petter Reinholdtsen
2014-01-28 22:29:30 +0000
8478327498Adjust makefile to make it easier to link all binaries statically. Patch from Matias A. Fonzo and Dragora.
Petter Reinholdtsen
2014-01-28 22:11:34 +0000
5421d713aeAdjust more included headers to be compatible with the musl C library. Patch from Matias A. Fonzo and Dragora.
Petter Reinholdtsen
2014-01-28 22:07:30 +0000
834bcebcafUse 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.
Petter Reinholdtsen
2014-01-28 10:13:10 +0000
c26aaa4410Define _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.
Petter Reinholdtsen
2014-01-27 22:05:54 +0000
52b92185deMove 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.
Petter Reinholdtsen
2014-01-27 21:55:57 +0000
f11cdf9554Adjust included headers to be compatible with the musl C library. Patch from Matias A. Fonzo and Dragora.
Petter Reinholdtsen
2014-01-26 22:00:42 +0000
2d0b513b8aMake 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).
Petter Reinholdtsen
2014-01-26 16:40:03 +0000
7d6e3683b0Make sure logintime string can never overflow (Coverity CID 1164485).
Petter Reinholdtsen
2014-01-26 13:38:51 +0000
ae7c73ec7fMake sure cmdline string always is null terminated, even if it is very long (Coverity CID 1164484).
Petter Reinholdtsen
2014-01-26 13:29:43 +0000
1c9808ec42Close open file descriptor if the version is wrong (Coverity CID 1164481).
Petter Reinholdtsen
2014-01-26 09:58:04 +0000
568c01bbb5Document a fall through case block (Coverity CID 1164467).
Petter Reinholdtsen
2014-01-26 09:41:51 +0000
d2f82534cfTry 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.
Petter Reinholdtsen
2014-01-25 21:57:25 +0000
45660f6ee6Rename internal functions warn() and shutdown() in the shutdown binary to avoid surprising dynamic library name resolution conflict with NSS modules. Patch from Richard Tollerton.
Petter Reinholdtsen
2014-01-25 21:50:09 +0000
ffcb38faaeFix typo in changelog text.
Petter Reinholdtsen
2014-01-25 21:25:21 +0000
571c45f3e6Improve message printed when signaling processes to stop. Patch from Matias A. Fonzo at the dragora project.
Petter Reinholdtsen
2014-01-25 21:20:22 +0000
1017641f3eShutdown: use PATH_DEFAULT as suggested by Paul Arthur in local bug #36101 Killall5/pidof: handle strange names of executables (local bug #36252) Sulogin: be aware the crypt(3) may fail (local bug #36313)
Werner Fink
2012-10-11 13:10:40 +0000
ec06765756* Do not forget room for last NULL of new environment (was local bug 35866)
Werner Fink
2012-03-19 12:50:36 +0000
99a0a2583f* Handle deleted binaries in pidof (was local bug #34992)
Werner Fink
2012-03-16 16:46:06 +0000
d1a0609ab0* Allow init to delte extra environment variables (was local bug #35858) * Avoid that init double environment variables for its childs (was local bug #35855)
Werner Fink
2012-03-16 15:58:21 +0000
2f904f7848fix minor typo
Werner Fink
2011-11-14 08:53:05 +0000
6fe3edd48cAdd some code to be able to detect programs even as user with kernel 3.0 and above
Werner Fink
2011-10-17 12:53:27 +0000
4860983f8bSulogin: respect byte order that is do not mix chars and ints
Werner Fink
2011-07-27 10:49:05 +0000
09aa81cdbbSulogin: if zero is read at reading the passwd guess it's done.
Werner Fink
2011-07-26 12:03:13 +0000
eddea371caSulogin: enforce reconnection of stdin/stdout/stderr if a device was specified.
Werner Fink
2011-07-26 10:21:13 +0000
3cb95c8371Handle if the mountpoint(1) command is from util-linux 2.20+
Werner Fink
2011-07-01 13:56:45 +0000
bfca7da0f5* Remove man-db tag for encoding for canonical man
Werner Fink
2011-04-27 13:41:04 +0000
4301a57e89Sulogin: try to detect the real device(s) used for the system console /dev/console if but only if /dev/console is used. On Linux this can be more than one device, e.g. a serial line as well as a virtual console as well as a simple printer.
Werner Fink
2011-04-04 13:57:54 +0000
4201d1d42fRespect the device an the command line of sulogin as well as the standard input.
Werner Fink
2011-04-01 12:45:26 +0000
43bc53af8dEnhance src/consoles.c and src/consoles.h to reflect latest linux kernel possiblities to detect the devices used for the system console /dev/console
Werner Fink
2011-03-31 12:25:34 +0000
d9122565a0* Fix counting message lines in wall. Patch from Petr Lautrbach. * Fix bad printf conversion specifier in wall. Patch from Sébastien Luttringer. * Add patches from Openwall project. Thanks goes to Solar Designer.
Werner Fink
2011-03-15 13:16:55 +0000
1ef9e7736c* Add code to detect the system consoles with the help of the new /proc/consoles files of linux kernel 2.6.38+
Werner Fink
2011-03-11 17:29:36 +0000
6dacdb9ad0* Try to make utmpdump IPv6 valid, change based on suggestion from Navdeep Bhatia (see local bug #32429)
Werner Fink
2011-03-11 16:51:07 +0000
84e86ebbcd* Fix signal and alarm handling based on the patch from Florent Viard. (was local bug #32304) * Add fix for Redhat bug #573346: last incorrectly displays IPv6 addresses (was local bug #29497)
Werner Fink
2011-03-11 16:10:42 +0000
e1a1f90204Correct position of string pointer in NFS struct used in killall5/pidof
Werner Fink
2010-10-21 09:47:16 +0000
06972d9a7aMake quotes visible in example of the manual page of fstab-decode
Werner Fink
2010-05-19 08:11:05 +0000
5114500187Add fix for Debian bug #580272
Werner Fink
2010-05-17 09:44:34 +0000
ba54bb9ac4Fix sysvinit bug #29758
Werner Fink
2010-05-04 07:50:12 +0000
1f809110cbUse notdir in Makefile
Werner Fink
2010-04-29 10:41:19 +0000
27821f3c1b* Include limits.h in killall.c to enforce definition of PATH_MAX
Werner Fink
2010-04-28 08:31:17 +0000
cdb70c3a56Only set the VSWTC field for termios in init if it is available, to get the source building on FreeBSD.
Petter Reinholdtsen
2010-04-27 19:51:01 +0000
608673d2e3Add #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux platforms.
Petter Reinholdtsen
2010-04-27 19:43:17 +0000
9abf8cc828The next release will be 2.89.
Petter Reinholdtsen
2010-04-27 14:33:32 +0000
d886c94c9f* Correct fix for Debian bug #547073: use IUTF8 flag if defined and if already set to make sure the utf-8 flag is not cleared from the tty. Patch from Samuel Thibault.
Werner Fink
2010-04-27 12:32:52 +0000
4d38df17a9* Add internal make file extension for fast upload to savannah
Werner Fink
2010-04-14 12:04:35 +0000
080abb9f99* Set version in init.c : 2.88
Werner Fink
2010-04-12 08:34:38 +0000
59b0f661c6Merge PAM related changelog entries.
Petter Reinholdtsen
2010-04-11 09:03:03 +0000
d32b28e44eDo not strip binaries before installing them, to make it easier to get binaries with debug information installed.
Petter Reinholdtsen
2010-04-11 08:50:10 +0000
b6ecd1eadcIncude definition for MNT_DETACH which is missing in older GNU libc headers.
Petter Reinholdtsen
2010-04-11 07:42:27 +0000
66299c783dAdd compatibility code to handle old path /etc/powerstatus for a while.
Petter Reinholdtsen
2010-04-11 07:41:25 +0000
1ef67cb310* sulogin picking the SELinux context was broken. Patch by Daniel Walsh
Werner Fink
2010-04-08 09:07:36 +0000
5e919cc4ca* ditto
Werner Fink
2010-04-01 09:06:35 +0000
a6140d9d92* ditto
Werner Fink
2010-04-01 08:42:05 +0000
8d4557c16b* Remove PAM session start part from init as sulogin do not use and will not use a PAM conv() function. The current sulogin is able to handle DES as well as MD5, SHA, and Blowfish encrypted passwords due using getpwnam(3). * Enable the sulogin fallback password check to handle MD5, SHA, and Blowfish encrypted passwords in case of getpwnam(3) fails.
Werner Fink
2010-04-01 08:34:05 +0000
c49baa492c* ditto
Werner Fink
2010-03-30 17:39:19 +0000
f92d8b1cb0* ditto
Werner Fink
2010-03-30 17:38:53 +0000
f8887767cb* Avoid SUSE specific sulogin prompt
Werner Fink
2010-03-30 17:38:27 +0000
0c8868b54f* Extend sulogin to support additional encryption algorithms
Werner Fink
2010-03-30 15:22:00 +0000
b2fec03199* Test out PAM support, extend PAM support by providing environment is specified by /etc/pam.d/init * Move utmp/wtmp before the execvp() in spawn() to be sure to use the correct pid even on a controlling tty * Remaining problem is that the pid of the second fork() for getting a controlling tty isn't that reported by spawn() * Re-enable writting utmp/wtmp for boot scripts * Provide a simply /etc/pam.d/init as without it will not work (sigh!)
Werner Fink
2010-03-26 16:31:05 +0000
598cfa8acd* fix typo
Werner Fink
2010-03-23 16:16:59 +0000
f69ea1f550* Add fix for Debian bug #536574 -- Can be enabled by -DACCTON_OFF * Add helper program fstab-decode to make it easier to handle /etc/mtab content. Patch by Miloslav Trmac and Fedora. * Add fix for Debian bug #335023 - Make sure TERM is set on FreeBSD. * Add fix for Debian bug #374038 - Make it clear that shutdown -c can only cancel a waiting shutdown, not an active one. * Add not to pidof manual page about the use of readlink(2). Patch by Bill Nottingham and Fedora. * Add changes for Debian bug #68621 - Add PAM support for programs spawned by init on the console like sulogin. Based on patch by Topi Miettinen.
Werner Fink
2010-03-23 14:37:01 +0000
8517410f31Mention where the license text is on Debian systems.
Petter Reinholdtsen
2010-03-22 19:43:23 +0000
0ba62f4e38Mention project mailing list in the README file too.
Petter Reinholdtsen
2010-03-20 08:23:51 +0000
19344a389cMerge in preparation of new release.
Petter Reinholdtsen
2010-03-20 07:32:19 +0000
210e6a26a6* Fix some minor problems * init - enable is_selinux_enabled() to detect selinuxfs
Werner Fink
2010-03-19 16:53:57 +0000
2950c304a1* Increase buffer size for path checking to normal limit PATH_MAX+1
Werner Fink
2010-03-19 14:10:55 +0000
94a203f9e1remove empty blanks from empty lines
Werner Fink
2010-03-19 14:09:15 +0000
b98dd2505c* sulogin - add the possibility to reset the terminal io
Werner Fink
2010-03-12 18:18:28 +0000
d80bb06fec* init - avoid compiler warnings * init - initialize console by using the macros from ttydefaults.h * init - add the possiblity to ignore further interrupts from keyboard * init - add the possiblity to set sane terminal line settings
Werner Fink
2010-02-26 13:45:49 +0000
1107f3ba7d* pidof - shorten list check a bit for network based processes
Werner Fink
2010-02-23 17:12:12 +0000
9e449b3f6d* pidof/killall5 - make omit pid list a dynamic one. * pidof - provide '-n' to skip stat(2) syscall on network based FS.
Werner Fink
2010-02-23 16:51:18 +0000
746d8c46a1* remove left over
Werner Fink
2010-02-23 13:23:08 +0000
009d7247e4* Set SHELL to /bin/sh in the environmant of shutdown. * Retry to write out shutdown messages if interrupted.
Werner Fink
2010-02-23 12:26:26 +0000
2c2d31cb4c* Detected also removable block devices at halt/reboot to be able to flush data and send them the ATA standby command. This should avoid data loss on USB sticks and other removable block devices. * Flush block devices on halt/reboot if not done by the kernel.
Werner Fink
2010-02-22 14:59:58 +0000
1874af5c9c* Add option -w to the last command to display the full user and domain names in the output. Patch from Petr Lautrbach. * Add a manual page for utmpdump as this tool is sometimes very useful even if not intended for normal use. * Use paths.h macros for wall * Change path "/etc/powerstatus" to "/var/run/powerstatus"
Werner Fink
2010-02-19 15:51:36 +0000