Commit Graph

101 Commits

Author SHA1 Message Date
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
Werner Fink
1017641f3e Shutdown: 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)
2012-10-11 13:10:40 +00:00
Werner Fink
ec06765756 * Do not forget room for last NULL of new environment (was local bug 35866) 2012-03-19 12:50:36 +00:00
Werner Fink
99a0a2583f * Handle deleted binaries in pidof (was local bug #34992) 2012-03-16 16:46:06 +00:00
Werner Fink
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)
2012-03-16 15:58:21 +00:00
Werner Fink
2f904f7848 fix minor typo 2011-11-14 08:53:05 +00:00
Werner Fink
6fe3edd48c Add some code to be able to detect programs even as user with
kernel 3.0 and above
2011-10-17 12:53:27 +00:00
Werner Fink
4860983f8b Sulogin: respect byte order that is do not mix chars and ints 2011-07-27 10:49:05 +00:00
Werner Fink
09aa81cdbb Sulogin: if zero is read at reading the passwd guess it's done. 2011-07-26 12:03:13 +00:00
Werner Fink
eddea371ca Sulogin: enforce reconnection of stdin/stdout/stderr if a device
was specified.
2011-07-26 10:21:13 +00:00
Werner Fink
3cb95c8371 Handle if the mountpoint(1) command is from util-linux 2.20+ 2011-07-01 13:56:45 +00:00
Werner Fink
bfca7da0f5 * Remove man-db tag for encoding for canonical man 2011-04-27 13:41:04 +00:00
Werner Fink
4301a57e89 Sulogin: 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.
2011-04-04 13:57:54 +00:00
Werner Fink
4201d1d42f Respect the device an the command line of sulogin
as well as the standard input.
2011-04-01 12:45:26 +00:00
Werner Fink
43bc53af8d Enhance src/consoles.c and src/consoles.h to reflect latest
linux kernel possiblities to detect the devices used for
the system console /dev/console
2011-03-31 12:25:34 +00:00
Werner Fink
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.
2011-03-15 13:16:55 +00:00
Werner Fink
1ef9e7736c * Add code to detect the system consoles with the help of the
new /proc/consoles files of linux kernel 2.6.38+
2011-03-11 17:29:36 +00:00
Werner Fink
6dacdb9ad0 * Try to make utmpdump IPv6 valid, change based on suggestion from
Navdeep Bhatia (see local bug #32429)
2011-03-11 16:51:07 +00:00
Werner Fink
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)
2011-03-11 16:10:42 +00:00
Werner Fink
e1a1f90204 Correct position of string pointer in NFS struct used in killall5/pidof 2010-10-21 09:47:16 +00:00
Werner Fink
06972d9a7a Make quotes visible in example of the manual page of fstab-decode 2010-05-19 08:11:05 +00:00
Werner Fink
5114500187 Add fix for Debian bug #580272 2010-05-17 09:44:34 +00:00
Werner Fink
ba54bb9ac4 Fix sysvinit bug #29758 2010-05-04 07:50:12 +00:00
Werner Fink
1f809110cb Use notdir in Makefile 2010-04-29 10:41:19 +00:00
Werner Fink
27821f3c1b * Include limits.h in killall.c to enforce definition of PATH_MAX 2010-04-28 08:31:17 +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
Werner Fink
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.
2010-04-27 12:32:52 +00:00
Werner Fink
4d38df17a9 * Add internal make file extension for fast upload to savannah 2010-04-14 12:04:35 +00:00
Werner Fink
080abb9f99 * Set version in init.c : 2.88 2010-04-12 08:34:38 +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