OpenBSD CVS

CVS log for src/sbin/init/init.c


[BACK] Up to [local] / src / sbin / init

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.72 / (download) - annotate - [select for diffs], Sat Sep 10 00:49:47 2022 UTC (21 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored)

init(8): fix signal handler boolean type and qualifier

The variable "clang" is modified from a signal handler.  Change it
from an 'int' to a 'sig_atomic_t' and mark it 'volatile', as we
recommend in signal(3).

ok millert@ kn@

Revision 1.71 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:21 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 25 19:26:52 2020 UTC (4 years, 2 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.69: +5 -9 lines
Diff to previous 1.69 (colored)

init(8): use err(3) instead of hand-rolled fprintf(3) messages

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:44 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Aug 24 18:36:56 2018 UTC (5 years, 9 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.67: +2 -20 lines
Diff to previous 1.67 (colored)

Drop special handling of SIGSYS.

Tolerance for up to 25 SIGSYS deliveries was added to init(8) soon after
the addition of sysctl(2) at CSRG, presumably to ease the transition to
the new ABI.

After 25 years of work the ABI transition is finally complete and we can
now safely remove this splint.

In general, we now have better practices and methods for helping userspace
across kernel ABI breaks.

ok deraadt@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 31 15:57:44 2018 UTC (6 years, 4 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.66: +14 -10 lines
Diff to previous 1.66 (colored)

Check GETTY_SPACING against the monotonic clock.

Ensures that we can use the check if the system clock is set backwards.

While here, move time retrieval into the child process in start_getty(),
and only get the time if se_started has been set.

ok millert@ tb@

Revision 1.66 / (download) - annotate - [select for diffs], Sat Jan 6 16:26:12 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.65: +3 -13 lines
Diff to previous 1.65 (colored)

unifdef LOGIN_CAP, we always want to use login.conf
OK jca@, no objection deraadt@

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jun 16 06:46:54 2017 UTC (6 years, 11 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

s/CPU_LIDSUSPEND/CPU_LIDACTION/
ok mlarkin

Revision 1.64 / (download) - annotate - [select for diffs], Wed May 3 09:51:39 2017 UTC (7 years, 1 month ago) by mestre
Branch: MAIN
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored)

Use the safe idiom of cleaning sensitive data from memory with explicit_bzero,
instead of relying on other methods, after readpassphrase. Some programs on
this diff won't benefit that much since it happens near the terminal path, but
someone might copy the unsafe idiom to another program and place it where it
may leak sensitive data.

Discussed aeons ago with tb@, OK deraadt@ and beck@

Revision 1.63 / (download) - annotate - [select for diffs], Thu Mar 2 10:38:09 2017 UTC (7 years, 3 months ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.62: +6 -6 lines
Diff to previous 1.62 (colored)

Add a new sysctl machdep.lidaction. The sysctl works as follows:

machdep.lidaction=0	# do nothing
machdep.lidaction=1	# suspend
machdep.lidaction=2	# hibernate

lidsuspend is just an alias for lidaction, so if you change one, the
other one will have the same value. The plan is to remove
machdep.lidsuspend eventually when people have upgraded their
/ets/sysctl.conf.

discussed with deraadt, who came up with the new MIB name
no objections mlarkin
ok stsp halex jcs

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 5 10:20:40 2016 UTC (7 years, 9 months ago) by gsoares
Branch: MAIN
Changes since 1.61: +4 -2 lines
Diff to previous 1.61 (colored)

replace obsolete getpass() by readpassphrase()
OK tedu millert

Revision 1.61 / (download) - annotate - [select for diffs], Sun Sep 4 12:30:01 2016 UTC (7 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.60: +21 -42 lines
Diff to previous 1.60 (colored)

Use an RB tree instead of BDB to map process->session, ok tedu millert

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 27 01:55:30 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored)

Pull in <sys/time.h> for struct timespec

ok deraadt@

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 10 21:54:59 2016 UTC (8 years, 1 month ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.58: +13 -9 lines
Diff to previous 1.58 (colored)

Do not close the stdio file desciptors in init(8), but dup2(2) them
from /dev/null.  The code is taken from daemon(3).  Also move this
operation to the beginning.
OK millert@ deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Mon Feb 1 20:14:51 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Remove variable unneeded since introduction of crypt_checkpass

ok millert@

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 23 02:41:12 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.56: +9 -9 lines
Diff to previous 1.56 (colored)

Use NULL rather than 0 for pointers. No binary change.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Dec 10 17:27:00 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
Changes since 1.55: +2 -3 lines
Diff to previous 1.55 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 18 19:25:07 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.54: +8 -6 lines
Diff to previous 1.54 (colored)

use _shadow getpwnam (and crypt_checkpass)

Revision 1.54 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:21 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +2 -3 lines
Diff to previous 1.53 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jul 14 19:14:05 2015 UTC (8 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.52: +83 -62 lines
Diff to previous 1.52 (colored)

Use volatile sig_atomic_t for requested_transition since it is
modified inside signal handlers.  Instead of returning a function
pointer, the state functions now return an enum for the next state.
This is used as an index into an array of function pointers to
do the actual state change in transition().  OK deraadt@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:58 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.51 / (download) - annotate - [select for diffs], Sat Dec 6 00:20:22 2014 UTC (9 years, 6 months ago) by bluhm
Branch: MAIN
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

Do not define the variable pid twice to avoid a compiler warning.
OK millert@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Apr 22 20:40:37 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

malloc/memset->calloc. with bonus null check. from peter malone.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jan 3 22:29:00 2014 UTC (10 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.48: +7 -5 lines
Diff to previous 1.48 (colored)

Do not raise the securelevel when transitioning from catatonia to
multiuser since we are not actually going multiuser.  Fixes a problem
where the securelevel was raised for rc.shutdown even when reboot
was run from single user mode.  OK deraadt@

Revision 1.48 / (download) - annotate - [select for diffs], Mon Feb 11 15:52:42 2013 UTC (11 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

Ignore sysctl failure for CPU_LIDSUSPEND when errno is EOPNOTSUPP.
Just because CPU_LIDSUSPEND is defined in cpu.h does mean it is
actually supported by the hardware.  OK halex@

Revision 1.47 / (download) - annotate - [select for diffs], Thu Oct 11 22:21:29 2012 UTC (11 years, 8 months ago) by halex
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

fix "disable lidsuspend on shutdown":
- pull in machine/cpu.h so we can actually see CPU_LIDSUSPEND if it's there
- fix the resulting compilation errors now that the code is actually used

"Just go for it" deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 6 17:25:00 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

no need to (unsigned) a small constant

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 15 07:11:02 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

freebsd uses SIGINT to request a reboot, we may as well be consistent.

pointed out by kettenis@ and deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Thu Oct 14 23:48:57 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.43: +18 -4 lines
Diff to previous 1.43 (colored)

add a SIGQUIT handler that does the same as USR1 and USR2, except it
reboots the machine instead just halting or powering down.

diff from Jonathan Matthew
manpage tweaks from jmc@
ok deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 29 13:23:37 2010 UTC (13 years, 8 months ago) by dcoppa
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Add missing err.h include

OK deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Sat Aug 7 10:22:28 2010 UTC (13 years, 10 months ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.41: +12 -1 lines
Diff to previous 1.41 (colored)

disable lidsuspend when we are powering down

"I like this" marco@, "Sure" deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:33 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.40: +1 -15 lines
Diff to previous 1.40 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.40 / (download) - annotate - [select for diffs], Mon Sep 3 14:26:54 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

malloc(n * m) -> calloc(n, m); ok espie

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 22 00:25:22 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.38: +25 -7 lines
Diff to previous 1.38 (colored)

accept SIGUSR2.  Like SIGUSR1, except it makes RB_POWERDOWN mandatory.
This will be used by kernel components which are trying to really really
power the system down.  suggested and tested by jason

Revision 1.38 / (download) - annotate - [select for diffs], Sun Mar 19 18:43:56 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.37: +8 -3 lines
Diff to previous 1.37 (colored)

Fix mem leaks in error path. From NetBSD's coverity analysis. ok pat@
deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Sat Nov 12 13:30:46 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.36: +6 -11 lines
Diff to previous 1.36 (colored)

use snprintf; dhill@mindcry.org

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 13 13:53:23 2005 UTC (19 years, 3 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.35: +8 -2 lines
Diff to previous 1.35 (colored)

turn off accounting when switching to single user;
report bluhm at genua.de; ok henning, krw, deraadt

Revision 1.35 / (download) - annotate - [select for diffs], Tue Mar 16 01:11:09 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.34: +2 -3 lines
Diff to previous 1.34 (colored)

errno is not specified to be int, but something from errno.h.  ok millert@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Oct 30 23:58:52 2003 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +8 -4 lines
Diff to previous 1.33 (colored)

malloc failures in init?  never.  but try to be reasonable for one dumb one

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 29 18:38:36 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.32: +22 -22 lines
Diff to previous 1.32 (colored)

spaces

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:15 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.31: +3 -7 lines
Diff to previous 1.31 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 30 18:09:44 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +10 -6 lines
Diff to previous 1.30 (colored)

snprintf; millert ok

Revision 1.30 / (download) - annotate - [select for diffs], Wed Dec 11 21:58:37 2002 UTC (21 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.29: +8 -8 lines
Diff to previous 1.29 (colored)

Minor cosmetic nits picked while reading though init.c:
o Use STD{IN,OUT,ERR}_FILENO, not 0-2
o Call exit() from main, not return() (code is never reached anyway)
o Change two cases of '!' into "== NULL"

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 10 23:27:54 2002 UTC (21 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.28: +14 -14 lines
Diff to previous 1.28 (colored)

Style nits.  Use STDERR_FILENO, not just 2.  Also use parens with
return; David Hill

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jul 3 22:32:32 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.27: +33 -56 lines
Diff to previous 1.27 (colored)

ansi

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:06 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored)

rm trailing whitespace

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 22 08:21:02 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.25: +7 -6 lines
Diff to previous 1.25 (colored)

strcpy, sprintf death; mpech ok

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:38 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.24: +3 -77 lines
Diff to previous 1.24 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:35 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.23: +38 -38 lines
Diff to previous 1.23 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Nov 5 07:39:16 2001 UTC (22 years, 7 months ago) by mpech
Branch: MAIN
Changes since 1.22: +20 -20 lines
Diff to previous 1.22 (colored)

kill more registers;

millert@ ok

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:45 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 19 17:57:37 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

mark signal races i cannot fix at the moment

Revision 1.20 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:39 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.19: +38 -0 lines
Diff to previous 1.19 (colored)

Add calls to setusercontext() and login_get*().  We basically call
setusercontext() in most places where previously we did a setlogin().
Add default login.conf file and put root in the "daemon" login class.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 6 00:19:31 2000 UTC (23 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.18: +7 -3 lines
Diff to previous 1.18 (colored)

Add DEFAULT_STATE macro to allow ramdisk init to set default state to
single_user, not runcom (/etc/rc).

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jan 22 20:24:58 2000 UTC (24 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

remove extra externs not needed because of unistd.h (rest of tree will be done later.. contact me if you want to help)

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 3 18:11:49 1999 UTC (24 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.16: +7 -8 lines
Diff to previous 1.16 (colored)

have shutdown code run /etc/rc with arg of "shutdown"; rc.shutdown becomes  completely admin-editable

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 6 07:54:44 1999 UTC (24 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +88 -4 lines
Diff to previous 1.15 (colored)

if SIGUSR1 is received, kill gettys, run /etc/rc.shutdown, and halt the machine

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 3 16:20:24 1998 UTC (26 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.14: +5 -2 lines
Diff to previous 1.14 (colored)

zero sigaction before use

Revision 1.14 / (download) - annotate - [select for diffs], Mon May 4 06:37:02 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -26 lines
Diff to previous 1.13 (colored)

LETS_GET_BIG

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 13 15:26:46 1998 UTC (26 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Use _PATH_DEV, not "/dev/"
Make init(8) call login_fbtab() correctly.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 3 01:15:13 1998 UTC (26 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

sigset_t; jraynard

Revision 1.11 / (download) - annotate - [select for diffs], Sun Sep 14 10:37:45 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.10: +10 -10 lines
Diff to previous 1.10 (colored)

some -Wall

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 25 18:18:58 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.9: +20 -20 lines
Diff to previous 1.9 (colored)

(foo *)0 -> NULL

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 25 23:12:23 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.8: +5 -2 lines
Diff to previous 1.8 (colored)

closelog() more often

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 22 08:38:10 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Update to lite2 -- man page is the only thing that changed.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 31 18:29:38 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

at session termination, login_fbtab devs back to root

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 12 10:16:15 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +47 -3 lines
Diff to previous 1.5 (colored)

precheck getty devices for existance; if not there shut then down

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 12 06:45:29 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

do not ask for password if none set; from freebsd

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 12 01:03:44 1996 UTC (27 years, 11 months ago) by weingart
Branch: MAIN
Changes since 1.3: +29 -7 lines
Diff to previous 1.3 (colored)

Fix netbsd pr bin/2620.  Fix dangling pointer while I am at it.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 23 14:30:50 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

update rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 22 11:34:49 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -9 lines
Diff to previous 1.1 (colored)

libutil

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:35 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:35 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.