sysvinit/src
Jesse Smith 483dc777d2 Changed the way the "when" variable is used internally in shutdown.c.
It starts as a NULL pointer, then might get set as a pointer to optarg,
then it might get set to point to an argv parameter, then it might have
a string value copied into it, over-writing the original data. We should
not risk over-writing internal variables which might get used for something
else (it's rude and security risk). Set up "when" as its own buffer
that has data from optargs and/or argv copied into it.

Minor code fixes across multiple source files to avoid buffer
overflows, or uninitialized strings.
2019-01-27 15:55:08 -04:00
..
.gitignore Removed old LSM file. 2018-05-04 22:08:38 -03:00
bootlogd.c Added logsave.c and logsave.8 manual page from e2fsprogs to make 2018-12-31 16:31:34 -04:00
bootlogd.h Added new tool (readbootlog) which will read the /var/log/boot file 2018-11-12 20:29:28 -04:00
consoles.c Added patch from Samuel Thibault to make project compile 2018-11-19 18:12:13 -04:00
consoles.h Sulogin: enforce reconnection of stdin/stdout/stderr if a device 2011-07-26 10:21:13 +00:00
dowall.c Removed super loud PC speaker beep during shutdown. 2018-10-22 22:03:09 -03:00
fstab-decode.c * Add fix for Debian bug #536574 -- Can be enabled by -DACCTON_OFF 2010-03-23 14:37:01 +00:00
halt.c When the halt command is called with the -p flag (or as poweroff) 2018-11-23 22:11:42 -04:00
hddown.c Added "Fall through" comments to some switch statements where multiple 2018-05-04 14:51:40 -03:00
ifdown.c Port ifdown.c to FreeBSD. Patch from Guillem Jover and Debian. 2014-02-07 17:55:37 +00:00
init.c Updated copyright in init and removed unused Version variable from killall5.c 2018-12-27 15:31:14 -04:00
init.h Added some defines and compile-time conditionals to make some 2018-12-09 19:32:04 -04:00
initreq.h Moved the named communication pipe from /dev/initctl to /run/initctl. This 2018-02-20 19:29:08 -04:00
killall5.c Changed the way the "when" variable is used internally in shutdown.c. 2019-01-27 15:55:08 -04:00
last.c Changed the way the "when" variable is used internally in shutdown.c. 2019-01-27 15:55:08 -04:00
logsave.c Changed the way the "when" variable is used internally in shutdown.c. 2019-01-27 15:55:08 -04:00
Makefile Added logsave.c and logsave.8 manual page from e2fsprogs to make 2018-12-31 16:31:34 -04:00
mesg.c Drop hurd specific dependency on libc0.3 (>= 2.3.2.ds1-12). It is 2009-09-10 08:28:49 +00:00
mountpoint.c Changed the way the "when" variable is used internally in shutdown.c. 2019-01-27 15:55:08 -04:00
oldutmp.h Drop hurd specific dependency on libc0.3 (>= 2.3.2.ds1-12). It is 2009-09-10 08:28:49 +00:00
paths.h Added new runlevel log code which saves (and reads) the current runlevel 2018-07-07 18:49:04 -03:00
readbootlog.c Added manual page and options for readbootlog. 2018-11-12 20:53:52 -04:00
reboot.h Drop hurd specific dependency on libc0.3 (>= 2.3.2.ds1-12). It is 2009-09-10 08:28:49 +00:00
runlevel.c The init process now writes the current runlevel to /var/run/runlevel. 2018-07-07 20:19:03 -03:00
runlevellog.c The init process now writes the current runlevel to /var/run/runlevel. 2018-07-07 20:19:03 -03:00
runlevellog.h Added new runlevel log code which saves (and reads) the current runlevel 2018-07-07 18:49:04 -03:00
set.h Drop hurd specific dependency on libc0.3 (>= 2.3.2.ds1-12). It is 2009-09-10 08:28:49 +00:00
shutdown.c Changed the way the "when" variable is used internally in shutdown.c. 2019-01-27 15:55:08 -04:00
sulogin.c Use defined constant for field length for easier updating/patching 2019-01-13 12:24:12 -04:00
utmp.c Added some defines and compile-time conditionals to make some 2018-12-09 19:32:04 -04:00
utmpdump.c Removed unneeded "count" variable in utmpdump.c. 2018-03-30 22:15:04 -03:00
wall.c Removed super loud PC speaker beep during shutdown. 2018-10-22 22:03:09 -03:00