]> git.wh0rd.org - sysvinit.git/log
sysvinit.git
9 years agoRemove unused variable realuid from main().
Petter Reinholdtsen [Fri, 7 Feb 2014 06:57:11 +0000 (06:57 +0000)] 
Remove unused variable realuid from main().

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@145 456724a4-4300-0410-8514-c89748c515a2

9 years agoRemove unused variable serial from tcfinal().
Petter Reinholdtsen [Fri, 7 Feb 2014 06:55:53 +0000 (06:55 +0000)] 
Remove unused variable serial from tcfinal().

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@144 456724a4-4300-0410-8514-c89748c515a2

9 years agoAvoid setting unused value and trick scan-build from clang into not warn about appare...
Petter Reinholdtsen [Wed, 5 Feb 2014 13:24:18 +0000 (13:24 +0000)] 
Avoid setting unused value and trick scan-build from clang into not warn about apparenly unused value.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@143 456724a4-4300-0410-8514-c89748c515a2

9 years agoExplain why maxsymlinks() exist.
Petter Reinholdtsen [Wed, 5 Feb 2014 13:23:08 +0000 (13:23 +0000)] 
Explain why maxsymlinks() exist.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@142 456724a4-4300-0410-8514-c89748c515a2

9 years agoNo use checkinf if env is true in the branch where it is false (Coverity CID 1164462).
Petter Reinholdtsen [Tue, 28 Jan 2014 22:29:30 +0000 (22:29 +0000)] 
No use checkinf if env is true in the branch where it is false (Coverity CID 1164462).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@141 456724a4-4300-0410-8514-c89748c515a2

9 years agoAdjust makefile to make it easier to link all binaries statically.
Petter Reinholdtsen [Tue, 28 Jan 2014 22:11:34 +0000 (22:11 +0000)] 
Adjust makefile to make it easier to link all binaries statically.
Patch from Matias A. Fonzo and Dragora.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@140 456724a4-4300-0410-8514-c89748c515a2

9 years agoAdjust more included headers to be compatible with the musl C
Petter Reinholdtsen [Tue, 28 Jan 2014 22:07:30 +0000 (22:07 +0000)] 
Adjust more included headers to be compatible with the musl C
library.  Patch from Matias A. Fonzo and Dragora.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@139 456724a4-4300-0410-8514-c89748c515a2

9 years agoUse sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS. If sysconf
Petter Reinholdtsen [Tue, 28 Jan 2014 10:13:10 +0000 (10:13 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@138 456724a4-4300-0410-8514-c89748c515a2

9 years agoDefine _XOPEN_SOURCE when building to get crypt() from <unistd.h> instead of using...
Petter Reinholdtsen [Mon, 27 Jan 2014 22:05:54 +0000 (22:05 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@137 456724a4-4300-0410-8514-c89748c515a2

9 years agoMove dovoid() macro from #ifdef__GLIBC__ to #ifdef __linux__, to match the condutions...
Petter Reinholdtsen [Mon, 27 Jan 2014 21:55:57 +0000 (21:55 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@136 456724a4-4300-0410-8514-c89748c515a2

9 years agoAdjust included headers to be compatible with the musl C library. Patch from Matias...
Petter Reinholdtsen [Sun, 26 Jan 2014 22:00:42 +0000 (22:00 +0000)] 
Adjust included headers to be compatible with the musl C library.  Patch from Matias A. Fonzo and Dragora.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@135 456724a4-4300-0410-8514-c89748c515a2

9 years agoMake sure FILE pointer returned by hdopen() is not leaked even if the
Petter Reinholdtsen [Sun, 26 Jan 2014 16:40:03 +0000 (16:40 +0000)] 
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).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@134 456724a4-4300-0410-8514-c89748c515a2

9 years agoMake sure logintime string can never overflow (Coverity CID 1164485).
Petter Reinholdtsen [Sun, 26 Jan 2014 13:38:51 +0000 (13:38 +0000)] 
Make sure logintime string can never overflow (Coverity CID 1164485).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@133 456724a4-4300-0410-8514-c89748c515a2

9 years agoMake sure cmdline string always is null terminated, even if it is very long (Coverity...
Petter Reinholdtsen [Sun, 26 Jan 2014 13:29:43 +0000 (13:29 +0000)] 
Make sure cmdline string always is null terminated, even if it is very long (Coverity CID 1164484).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@132 456724a4-4300-0410-8514-c89748c515a2

9 years agoClose open file descriptor if the version is wrong (Coverity CID 1164481).
Petter Reinholdtsen [Sun, 26 Jan 2014 09:58:04 +0000 (09:58 +0000)] 
Close open file descriptor if the version is wrong (Coverity CID 1164481).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@131 456724a4-4300-0410-8514-c89748c515a2

9 years agoDocument a fall through case block (Coverity CID 1164467).
Petter Reinholdtsen [Sun, 26 Jan 2014 09:41:51 +0000 (09:41 +0000)] 
Document a fall through case block (Coverity CID 1164467).

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@130 456724a4-4300-0410-8514-c89748c515a2

9 years agoTry harder to find libcrypt.*, even if there is no static library
Petter Reinholdtsen [Sat, 25 Jan 2014 21:57:25 +0000 (21:57 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@129 456724a4-4300-0410-8514-c89748c515a2

9 years agoRename internal functions warn() and shutdown() in the shutdown
Petter Reinholdtsen [Sat, 25 Jan 2014 21:50:09 +0000 (21:50 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@128 456724a4-4300-0410-8514-c89748c515a2

9 years agoFix typo in changelog text.
Petter Reinholdtsen [Sat, 25 Jan 2014 21:25:21 +0000 (21:25 +0000)] 
Fix typo in changelog text.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@127 456724a4-4300-0410-8514-c89748c515a2

9 years agoImprove message printed when signaling processes to stop. Patch from Matias A. Fonzo...
Petter Reinholdtsen [Sat, 25 Jan 2014 21:20:22 +0000 (21:20 +0000)] 
Improve message printed when signaling processes to stop. Patch from Matias A. Fonzo at the dragora project.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@126 456724a4-4300-0410-8514-c89748c515a2

11 years agoShutdown: use PATH_DEFAULT as suggested by Paul Arthur in local bug #36101
Dr. Werner Fink [Thu, 11 Oct 2012 13:10:40 +0000 (13:10 +0000)] 
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)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@117 456724a4-4300-0410-8514-c89748c515a2

11 years ago* Do not forget room for last NULL of new environment (was local bug 35866)
Dr. Werner Fink [Mon, 19 Mar 2012 12:50:36 +0000 (12:50 +0000)] 
* Do not forget room for last NULL of new environment (was local bug 35866)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@116 456724a4-4300-0410-8514-c89748c515a2

11 years ago* Handle deleted binaries in pidof (was local bug #34992)
Dr. Werner Fink [Fri, 16 Mar 2012 16:46:06 +0000 (16:46 +0000)] 
* Handle deleted binaries in pidof (was local bug #34992)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@115 456724a4-4300-0410-8514-c89748c515a2

11 years ago* Allow init to delte extra environment variables (was local bug
Dr. Werner Fink [Fri, 16 Mar 2012 15:58:21 +0000 (15:58 +0000)] 
* Allow init to delte extra environment variables (was local bug
  #35858)
* Avoid that init double environment variables for its childs
  (was local bug #35855)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@114 456724a4-4300-0410-8514-c89748c515a2

12 years agofix minor typo
Dr. Werner Fink [Mon, 14 Nov 2011 08:53:05 +0000 (08:53 +0000)] 
fix minor typo

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@113 456724a4-4300-0410-8514-c89748c515a2

12 years agoAdd some code to be able to detect programs even as user with
Dr. Werner Fink [Mon, 17 Oct 2011 12:53:27 +0000 (12:53 +0000)] 
Add some code to be able to detect programs even as user with
kernel 3.0 and above

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@112 456724a4-4300-0410-8514-c89748c515a2

12 years agoSulogin: respect byte order that is do not mix chars and ints
Dr. Werner Fink [Wed, 27 Jul 2011 10:49:05 +0000 (10:49 +0000)] 
Sulogin: respect byte order that is do not mix chars and ints

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@109 456724a4-4300-0410-8514-c89748c515a2

12 years agoSulogin: if zero is read at reading the passwd guess it's done.
Dr. Werner Fink [Tue, 26 Jul 2011 12:03:13 +0000 (12:03 +0000)] 
Sulogin: if zero is read at reading the passwd guess it's done.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@108 456724a4-4300-0410-8514-c89748c515a2

12 years agoSulogin: enforce reconnection of stdin/stdout/stderr if a device
Dr. Werner Fink [Tue, 26 Jul 2011 10:21:13 +0000 (10:21 +0000)] 
Sulogin: enforce reconnection of stdin/stdout/stderr if a device
was specified.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@107 456724a4-4300-0410-8514-c89748c515a2

12 years agoHandle if the mountpoint(1) command is from util-linux 2.20+
Dr. Werner Fink [Fri, 1 Jul 2011 13:56:45 +0000 (13:56 +0000)] 
Handle if the mountpoint(1) command is from util-linux 2.20+

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@106 456724a4-4300-0410-8514-c89748c515a2

12 years ago* Remove man-db tag for encoding for canonical man
Dr. Werner Fink [Wed, 27 Apr 2011 13:41:04 +0000 (13:41 +0000)] 
* Remove man-db tag for encoding for canonical man

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@105 456724a4-4300-0410-8514-c89748c515a2

12 years agoSulogin: try to detect the real device(s) used for the system console
Dr. Werner Fink [Mon, 4 Apr 2011 13:57:54 +0000 (13:57 +0000)] 
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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@104 456724a4-4300-0410-8514-c89748c515a2

12 years agoRespect the device an the command line of sulogin
Dr. Werner Fink [Fri, 1 Apr 2011 12:45:26 +0000 (12:45 +0000)] 
Respect the device an the command line of sulogin
as well as the standard input.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@103 456724a4-4300-0410-8514-c89748c515a2

12 years agoEnhance src/consoles.c and src/consoles.h to reflect latest
Dr. Werner Fink [Thu, 31 Mar 2011 12:25:34 +0000 (12:25 +0000)] 
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

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@102 456724a4-4300-0410-8514-c89748c515a2

12 years ago* Fix counting message lines in wall. Patch from Petr Lautrbach.
Dr. Werner Fink [Tue, 15 Mar 2011 13:16:55 +0000 (13:16 +0000)] 
* 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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@101 456724a4-4300-0410-8514-c89748c515a2

12 years ago* Add code to detect the system consoles with the help of the
Dr. Werner Fink [Fri, 11 Mar 2011 17:29:36 +0000 (17:29 +0000)] 
* Add code to detect the system consoles with the help of the
  new /proc/consoles files of linux kernel 2.6.38+

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@100 456724a4-4300-0410-8514-c89748c515a2

12 years ago* Try to make utmpdump IPv6 valid, change based on suggestion from
Dr. Werner Fink [Fri, 11 Mar 2011 16:51:07 +0000 (16:51 +0000)] 
* Try to make utmpdump IPv6 valid, change based on suggestion from
  Navdeep Bhatia (see local bug #32429)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@99 456724a4-4300-0410-8514-c89748c515a2

12 years ago* Fix signal and alarm handling based on the patch from Florent Viard.
Dr. Werner Fink [Fri, 11 Mar 2011 16:10:42 +0000 (16:10 +0000)] 
* 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)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@98 456724a4-4300-0410-8514-c89748c515a2

13 years agoCorrect position of string pointer in NFS struct used in killall5/pidof
Dr. Werner Fink [Thu, 21 Oct 2010 09:47:16 +0000 (09:47 +0000)] 
Correct position of string pointer in NFS struct used in killall5/pidof

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@96 456724a4-4300-0410-8514-c89748c515a2

13 years agoMake quotes visible in example of the manual page of fstab-decode
Dr. Werner Fink [Wed, 19 May 2010 08:11:05 +0000 (08:11 +0000)] 
Make quotes visible in example of the manual page of fstab-decode

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@91 456724a4-4300-0410-8514-c89748c515a2

13 years agoAdd fix for Debian bug #580272
Dr. Werner Fink [Mon, 17 May 2010 09:44:34 +0000 (09:44 +0000)] 
Add fix for Debian bug #580272

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@90 456724a4-4300-0410-8514-c89748c515a2

13 years agoFix sysvinit bug #29758
Dr. Werner Fink [Tue, 4 May 2010 07:50:12 +0000 (07:50 +0000)] 
Fix sysvinit bug #29758

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@87 456724a4-4300-0410-8514-c89748c515a2

13 years agoUse notdir in Makefile
Dr. Werner Fink [Thu, 29 Apr 2010 10:41:19 +0000 (10:41 +0000)] 
Use notdir in Makefile

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@82 456724a4-4300-0410-8514-c89748c515a2

13 years ago* Include limits.h in killall.c to enforce definition of PATH_MAX
Dr. Werner Fink [Wed, 28 Apr 2010 08:31:17 +0000 (08:31 +0000)] 
* Include limits.h in killall.c to enforce definition of PATH_MAX

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@73 456724a4-4300-0410-8514-c89748c515a2

13 years agoOnly set the VSWTC field for termios in init if it is available, to get the source...
Petter Reinholdtsen [Tue, 27 Apr 2010 19:51:01 +0000 (19:51 +0000)] 
Only set the VSWTC field for termios in init if it is available, to get the source building on FreeBSD.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@72 456724a4-4300-0410-8514-c89748c515a2

13 years agoAdd #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux...
Petter Reinholdtsen [Tue, 27 Apr 2010 19:43:17 +0000 (19:43 +0000)] 
Add #ifdef in bootlogd.c to avoid gcc warnings about unused variable on non-linux platforms.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@71 456724a4-4300-0410-8514-c89748c515a2

13 years agoThe next release will be 2.89.
Petter Reinholdtsen [Tue, 27 Apr 2010 14:33:32 +0000 (14:33 +0000)] 
The next release will be 2.89.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@70 456724a4-4300-0410-8514-c89748c515a2

13 years ago* Correct fix for Debian bug #547073: use IUTF8 flag if defined
Dr. Werner Fink [Tue, 27 Apr 2010 12:32:52 +0000 (12:32 +0000)] 
* 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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@69 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Add internal make file extension for fast upload to savannah
Dr. Werner Fink [Wed, 14 Apr 2010 12:04:35 +0000 (12:04 +0000)] 
 * Add internal make file extension for fast upload to savannah

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@68 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Set version in init.c : 2.88 2.88dsf
Dr. Werner Fink [Mon, 12 Apr 2010 08:34:38 +0000 (08:34 +0000)] 
 * Set version in init.c : 2.88

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@66 456724a4-4300-0410-8514-c89748c515a2

13 years agoRemove obsolete changelog entry.
Petter Reinholdtsen [Sun, 11 Apr 2010 09:25:54 +0000 (09:25 +0000)] 
Remove obsolete changelog entry.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@64 456724a4-4300-0410-8514-c89748c515a2

13 years agoMerge PAM related changelog entries.
Petter Reinholdtsen [Sun, 11 Apr 2010 09:03:03 +0000 (09:03 +0000)] 
Merge PAM related changelog entries.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@63 456724a4-4300-0410-8514-c89748c515a2

13 years agoDo not strip binaries before installing them, to make it easier to get binaries with...
Petter Reinholdtsen [Sun, 11 Apr 2010 08:50:10 +0000 (08:50 +0000)] 
Do not strip binaries before installing them, to make it easier to get binaries with debug information installed.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@62 456724a4-4300-0410-8514-c89748c515a2

13 years agoIncude definition for MNT_DETACH which is missing in older GNU libc headers.
Petter Reinholdtsen [Sun, 11 Apr 2010 07:42:27 +0000 (07:42 +0000)] 
Incude definition for MNT_DETACH which is missing in older GNU libc headers.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@61 456724a4-4300-0410-8514-c89748c515a2

13 years agoAdd compatibility code to handle old path /etc/powerstatus for a while.
Petter Reinholdtsen [Sun, 11 Apr 2010 07:41:25 +0000 (07:41 +0000)] 
Add compatibility code to handle old path /etc/powerstatus for a while.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@60 456724a4-4300-0410-8514-c89748c515a2

13 years ago * sulogin picking the SELinux context was broken. Patch by Daniel Walsh
Dr. Werner Fink [Thu, 8 Apr 2010 09:07:36 +0000 (09:07 +0000)] 
 * sulogin picking the SELinux context was broken. Patch by Daniel Walsh

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@59 456724a4-4300-0410-8514-c89748c515a2

13 years ago * ditto
Dr. Werner Fink [Thu, 1 Apr 2010 09:06:35 +0000 (09:06 +0000)] 
 * ditto

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@58 456724a4-4300-0410-8514-c89748c515a2

13 years ago * ditto
Dr. Werner Fink [Thu, 1 Apr 2010 08:42:05 +0000 (08:42 +0000)] 
 * ditto

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@57 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Remove PAM session start part from init as sulogin do not use
Dr. Werner Fink [Thu, 1 Apr 2010 08:34:05 +0000 (08:34 +0000)] 
 * 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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@56 456724a4-4300-0410-8514-c89748c515a2

13 years ago * ditto
Dr. Werner Fink [Tue, 30 Mar 2010 17:39:19 +0000 (17:39 +0000)] 
 * ditto

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@55 456724a4-4300-0410-8514-c89748c515a2

13 years ago * ditto
Dr. Werner Fink [Tue, 30 Mar 2010 17:38:53 +0000 (17:38 +0000)] 
 * ditto

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@54 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Avoid SUSE specific sulogin prompt
Dr. Werner Fink [Tue, 30 Mar 2010 17:38:27 +0000 (17:38 +0000)] 
 * Avoid SUSE specific sulogin prompt

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@53 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Extend sulogin to support additional encryption algorithms
Dr. Werner Fink [Tue, 30 Mar 2010 15:22:00 +0000 (15:22 +0000)] 
 * Extend sulogin to support additional encryption algorithms

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@52 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Test out PAM support, extend PAM support by providing environment
Dr. Werner Fink [Fri, 26 Mar 2010 16:31:05 +0000 (16:31 +0000)] 
 * 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!)

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@51 456724a4-4300-0410-8514-c89748c515a2

13 years ago* fix typo
Dr. Werner Fink [Tue, 23 Mar 2010 16:16:59 +0000 (16:16 +0000)] 
* fix typo

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@50 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Add fix for Debian bug #536574 -- Can be enabled by -DACCTON_OFF
Dr. Werner Fink [Tue, 23 Mar 2010 14:37:01 +0000 (14:37 +0000)] 
 * 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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@49 456724a4-4300-0410-8514-c89748c515a2

13 years agoMention where the license text is on Debian systems.
Petter Reinholdtsen [Mon, 22 Mar 2010 19:43:23 +0000 (19:43 +0000)] 
Mention where the license text is on Debian systems.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@48 456724a4-4300-0410-8514-c89748c515a2

13 years agoMention project mailing list in the README file too.
Petter Reinholdtsen [Sat, 20 Mar 2010 08:23:51 +0000 (08:23 +0000)] 
Mention project mailing list in the README file too.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@47 456724a4-4300-0410-8514-c89748c515a2

13 years agoFix typo.
Petter Reinholdtsen [Sat, 20 Mar 2010 08:22:48 +0000 (08:22 +0000)] 
Fix typo.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@46 456724a4-4300-0410-8514-c89748c515a2

13 years agoMerge in preparation of new release.
Petter Reinholdtsen [Sat, 20 Mar 2010 07:32:19 +0000 (07:32 +0000)] 
Merge in preparation of new release.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@45 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Fix some minor problems
Dr. Werner Fink [Fri, 19 Mar 2010 16:53:57 +0000 (16:53 +0000)] 
  * Fix some minor problems
  * init - enable is_selinux_enabled() to detect selinuxfs

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@44 456724a4-4300-0410-8514-c89748c515a2

13 years ago* Increase buffer size for path checking to normal limit PATH_MAX+1
Dr. Werner Fink [Fri, 19 Mar 2010 14:10:55 +0000 (14:10 +0000)] 
* Increase buffer size for path checking to normal limit PATH_MAX+1

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@43 456724a4-4300-0410-8514-c89748c515a2

13 years agoremove empty blanks from empty lines
Dr. Werner Fink [Fri, 19 Mar 2010 14:09:15 +0000 (14:09 +0000)] 
remove empty blanks from empty lines

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@42 456724a4-4300-0410-8514-c89748c515a2

13 years ago* sulogin - add the possibility to reset the terminal io
Dr. Werner Fink [Fri, 12 Mar 2010 18:18:28 +0000 (18:18 +0000)] 
* sulogin - add the possibility to reset the terminal io

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@41 456724a4-4300-0410-8514-c89748c515a2

13 years ago * init - avoid compiler warnings
Dr. Werner Fink [Fri, 26 Feb 2010 13:45:49 +0000 (13:45 +0000)] 
  * 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

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@40 456724a4-4300-0410-8514-c89748c515a2

13 years ago * pidof - shorten list check a bit for network based processes
Dr. Werner Fink [Tue, 23 Feb 2010 17:12:12 +0000 (17:12 +0000)] 
 * pidof - shorten list check a bit for network based processes

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@39 456724a4-4300-0410-8514-c89748c515a2

13 years ago * pidof/killall5 - make omit pid list a dynamic one.
Dr. Werner Fink [Tue, 23 Feb 2010 16:51:18 +0000 (16:51 +0000)] 
  * pidof/killall5 - make omit pid list a dynamic one.
  * pidof - provide '-n' to skip stat(2) syscall on network based FS.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@38 456724a4-4300-0410-8514-c89748c515a2

13 years ago * remove left over
Dr. Werner Fink [Tue, 23 Feb 2010 13:23:08 +0000 (13:23 +0000)] 
 * remove left over

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@37 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Set SHELL to /bin/sh in the environmant of shutdown.
Dr. Werner Fink [Tue, 23 Feb 2010 12:26:26 +0000 (12:26 +0000)] 
  * Set SHELL to /bin/sh in the environmant of shutdown.
  * Retry to write out shutdown messages if interrupted.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@36 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Detected also removable block devices at halt/reboot to be able
Dr. Werner Fink [Mon, 22 Feb 2010 14:59:58 +0000 (14:59 +0000)] 
  * 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.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@35 456724a4-4300-0410-8514-c89748c515a2

13 years ago * Add option -w to the last command to display the full user and
Dr. Werner Fink [Fri, 19 Feb 2010 15:51:36 +0000 (15:51 +0000)] 
  * 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"

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@34 456724a4-4300-0410-8514-c89748c515a2

14 years agoMerge changelogs.
Petter Reinholdtsen [Tue, 24 Nov 2009 17:37:31 +0000 (17:37 +0000)] 
Merge changelogs.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@29 456724a4-4300-0410-8514-c89748c515a2

14 years agoAdd changelog entry
Dr. Werner Fink [Tue, 24 Nov 2009 10:07:47 +0000 (10:07 +0000)] 
Add changelog entry

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@28 456724a4-4300-0410-8514-c89748c515a2

14 years agoAdd the comment from Andrea Arcangeli about the correct
Dr. Werner Fink [Tue, 24 Nov 2009 10:03:19 +0000 (10:03 +0000)] 
Add the comment from Andrea Arcangeli about the correct
place of setting the default childhandler within spawn().
Make sure that newline is printed out for last(1) even
if an utmp record entry is truncated.
Check if utmp not only exists but is writable and delay
writing out of the utmp runlevel record if utmp is not writable.
Be able to find libcrypt also on 64 bit based architectures.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@27 456724a4-4300-0410-8514-c89748c515a2

14 years agoNew address sysvinit-devel@nongnu.org for patches in COPYRIGHT
Dr. Werner Fink [Mon, 23 Nov 2009 10:50:43 +0000 (10:50 +0000)] 
New address sysvinit-devel@nongnu.org for patches in COPYRIGHT

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@26 456724a4-4300-0410-8514-c89748c515a2

14 years agoGet rid of signed/unsigned warning.
Petter Reinholdtsen [Sun, 22 Nov 2009 22:36:29 +0000 (22:36 +0000)] 
Get rid of signed/unsigned warning.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@25 456724a4-4300-0410-8514-c89748c515a2

14 years agoLeftover.
Petter Reinholdtsen [Sun, 22 Nov 2009 22:32:54 +0000 (22:32 +0000)] 
Leftover.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@24 456724a4-4300-0410-8514-c89748c515a2

14 years agoMake sure bootlogd fflush() every line, even if asked not to flush
Petter Reinholdtsen [Sun, 22 Nov 2009 22:23:14 +0000 (22:23 +0000)] 
Make sure bootlogd fflush() every line, even if asked not to flush
to disk using fdatasync().  Patch from Scott Gifford via Debian.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@23 456724a4-4300-0410-8514-c89748c515a2

14 years agoMake sure bootlogd findpty() returns an error value when it fails to
Petter Reinholdtsen [Sun, 22 Nov 2009 22:22:09 +0000 (22:22 +0000)] 
Make sure bootlogd findpty() returns an error value when it fails to
find a usable pty.  Patch from Rob Leslie via Debian.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@22 456724a4-4300-0410-8514-c89748c515a2

14 years agoRewrite findtty() in bootlogd to recursively search /dev/ for the
Petter Reinholdtsen [Sun, 22 Nov 2009 22:21:02 +0000 (22:21 +0000)] 
Rewrite findtty() in bootlogd to recursively search /dev/ for the
correct device, to handle terminal devices for example in /dev/pty/.
Patch from Debian.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@21 456724a4-4300-0410-8514-c89748c515a2

14 years agoGet rid of warning about unused argument fromshutdown, and make sure the wall string...
Petter Reinholdtsen [Sun, 22 Nov 2009 22:05:53 +0000 (22:05 +0000)] 
Get rid of warning about unused argument fromshutdown, and make sure the wall string isn't changed by the wall() function.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@20 456724a4-4300-0410-8514-c89748c515a2

14 years agoHide unused variable when not building with WITH_SELINUX.
Petter Reinholdtsen [Sun, 22 Nov 2009 21:53:37 +0000 (21:53 +0000)] 
Hide unused variable when not building with WITH_SELINUX.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@19 456724a4-4300-0410-8514-c89748c515a2

14 years agoFix race condition in utmp writing. Patch from Gil Kloepfer via
Petter Reinholdtsen [Sun, 22 Nov 2009 21:03:03 +0000 (21:03 +0000)] 
Fix race condition in utmp writing.  Patch from Gil Kloepfer via
Mike Frysinger and Gentoo.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@18 456724a4-4300-0410-8514-c89748c515a2

14 years agoSimplify build rules, based on patch from Mike Frysinger and Gentoo.
Petter Reinholdtsen [Fri, 20 Nov 2009 22:55:47 +0000 (22:55 +0000)] 
Simplify build rules, based on patch from Mike Frysinger and Gentoo.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@17 456724a4-4300-0410-8514-c89748c515a2

14 years agoSync shutdown manual page and usage information. Patch from Mike
Petter Reinholdtsen [Fri, 20 Nov 2009 22:33:35 +0000 (22:33 +0000)] 
Sync shutdown manual page and usage information.  Patch from Mike
Frysinger and Gentoo.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@16 456724a4-4300-0410-8514-c89748c515a2

14 years agoPrint usage information when shutdown is used by non-root user. Patch from Mike Frysi...
Petter Reinholdtsen [Sat, 14 Nov 2009 21:35:42 +0000 (21:35 +0000)] 
Print usage information when shutdown is used by non-root user. Patch from Mike Frysinger and Gentoo.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@15 456724a4-4300-0410-8514-c89748c515a2

14 years agoMention new home on Savannah in README.
Petter Reinholdtsen [Sat, 14 Nov 2009 21:33:43 +0000 (21:33 +0000)] 
Mention new home on Savannah in README.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@14 456724a4-4300-0410-8514-c89748c515a2

14 years agoAdd Makefile in toplevel directory.
Petter Reinholdtsen [Sat, 14 Nov 2009 21:31:20 +0000 (21:31 +0000)] 
Add Makefile in toplevel directory.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@13 456724a4-4300-0410-8514-c89748c515a2

14 years agoChange tty handling in init to make sure the UTF-8 flag is not cleared on boot. ...
Petter Reinholdtsen [Sat, 14 Nov 2009 21:28:32 +0000 (21:28 +0000)] 
Change tty handling in init to make sure the UTF-8 flag is not cleared on boot.  Patch from Samuel Thibault.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@12 456724a4-4300-0410-8514-c89748c515a2

14 years agoAdd casts to get rid of compiler warning about signed/unsigned issues.
Petter Reinholdtsen [Sat, 14 Nov 2009 21:27:13 +0000 (21:27 +0000)] 
Add casts to get rid of compiler warning about signed/unsigned issues.

git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@11 456724a4-4300-0410-8514-c89748c515a2