OpenBSD CVS

CVS log for src/usr.sbin/cron/do_command.c


[BACK] Up to [local] / src / usr.sbin / cron

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.63 / (download) - annotate - [select for diffs], Sat May 21 01:21:29 2022 UTC (2 years ago) by deraadt
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.62: +5 -5 lines
Diff to previous 1.62 (colored)

repair a few more backwards compares that create headaches
ok millert

Revision 1.62 / (download) - annotate - [select for diffs], Fri Jan 28 06:33:27 2022 UTC (2 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

When it's the possessive of 'it', it's spelled "its", without the
apostrophe.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Apr 16 17:51:56 2020 UTC (4 years, 1 month ago) by millert
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.60: +9 -3 lines
Diff to previous 1.60 (colored)

Add a mechanism to prevent cron jobs from running concurrently.
This adds a new "-s" flag to the command field which indicates that
only a single instance of the job should run concurrenty.
OK beck@ job@ deraadt@

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:47 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (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.59 / (download) - annotate - [select for diffs], Wed Jun 13 13:30:03 2018 UTC (5 years, 11 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.58: +2 -5 lines
Diff to previous 1.58 (colored)

zap a stray ';' and make a comment less ugly

Revision 1.58 / (download) - annotate - [select for diffs], Wed Jun 13 11:27:30 2018 UTC (5 years, 11 months ago) by job
Branch: MAIN
Changes since 1.57: +54 -47 lines
Diff to previous 1.57 (colored)

Add crontab entry option -n for "No mail when run successful"

OK jmc@ millert@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Oct 23 08:39:26 2017 UTC (6 years, 7 months ago) by friehm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

Close cron sockets in child processes.

ok jca@

Revision 1.56 / (download) - annotate - [select for diffs], Tue Nov 17 22:31:44 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.55: +5 -3 lines
Diff to previous 1.55 (colored)

Check pipe(2) return value; noticed by deraadt@

Revision 1.55 / (download) - annotate - [select for diffs], Sun Nov 15 23:24:24 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.54: +56 -53 lines
Diff to previous 1.54 (colored)

Clean up the remaining uses of stderr and perror() and use warn/err
and/or syslog depending on whether stderr is hooked up at the time.
Also remove closelog() which is not needed since we are headed for exec.
OK guenther@

Revision 1.54 / (download) - annotate - [select for diffs], Sat Nov 14 13:09:14 2015 UTC (8 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.53: +11 -14 lines
Diff to previous 1.53 (colored)

Remove log_it() and call syslog(3) directly using the same format:
"(username) WHAT (details)".  Logs due to normal operation (e.g.
crontab operations or running commands) are logged at LOG_INFO like
before.  Actual errors are logged at LOG_ERR, less important things
are logged at LOG_WARNING OR LOG_NOTICE.  Also ignore SIGHUP now
that there is no log file to reopen.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Nov 9 16:37:07 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.52: +6 -6 lines
Diff to previous 1.52 (colored)

Remove unused xpid argument to log_it().

Revision 1.52 / (download) - annotate - [select for diffs], Wed Nov 4 20:28:17 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.51: +24 -2 lines
Diff to previous 1.51 (colored)

Change cron from including all headers in every file to only including
what each .c file needs.  I have not removed cron.h since it will
be used in a future clean up of the cron's .h files.  OK nicm@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Oct 29 22:41:27 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.50: +7 -5 lines
Diff to previous 1.50 (colored)

Use stravis(3) instead of a homegrown vis-like function.
OK nicm@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Oct 25 21:30:11 2015 UTC (8 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

Remove cron.pid support.  We still want to avoid multiple crons
running so verify that if the cron socket exists nothing is listening
on it.  OK tedu@

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 23 18:42:55 2015 UTC (8 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.48: +1 -5 lines
Diff to previous 1.48 (colored)

remove some more ifdef maziness

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 3 19:47:21 2015 UTC (8 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.47: +5 -3 lines
Diff to previous 1.47 (colored)

There is no need to keep a global array of sysconf(_SC_OPEN_MAX) elements
just to keep track of a single pid. Return it to the caller and make it
their problem.
ok deraadt millert

Revision 1.47 / (download) - annotate - [select for diffs], Sat Oct 3 12:46:54 2015 UTC (8 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.46: +1 -23 lines
Diff to previous 1.46 (colored)

unifdef some features we will always have. ok benno zhuk

Revision 1.46 / (download) - annotate - [select for diffs], Mon Feb 9 22:35:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.45: +1 -5 lines
Diff to previous 1.45 (colored)

correct copyright, upon approval from paul vixie via todd miller.  the
head copyright assertion was seperated from the remaining ones.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 23 19:07:27 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.44: +7 -4 lines
Diff to previous 1.44 (colored)

braces to open a function go on their own line like god intended

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 23 02:37:25 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Remove the OK and ERR macros. They obfuscate the code and don't
help legibility. (unix system calls use 0 for ok, but hundreds of
other projects use 1 to indicate success.) Despite the name, many
system calls (e.g., open) also return not OK values for success.
It also cleans up some weird code like int crontab_fd = OK - 1;
This diff is mechanical in nature. Later I will fix the bugs it reveals.
ok deraadt

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jan 23 01:03:03 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

minor debug removal cleanup

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 23 01:01:06 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.41: +4 -49 lines
Diff to previous 1.41 (colored)

remove debug code.
I think the level of debug code in cron is excessive for a program
that has reached feature complete. If cron needs to provide more
information to the user about its operational status, I think syslog
would be more appropriate. (The debug flags also disable forking
into the background, so they aren't even that useful for debugging a
live system.)
ok deraadt millert

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 14 17:30:53 2015 UTC (9 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Replace MAXHOSTNAMELEN with HOST_NAME_MAX+1 and MAXNAMLEN with NAME_MAX
and use limits.h instead of sys/param.h.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Jan 14 17:27:51 2015 UTC (9 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

Use HAVE_FOO for BSD-specific features instead of relying on the
BSD macro from sys/param.h.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jan 14 17:27:30 2015 UTC (9 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Use standard types for wait, readdir, signals and pids.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Nov 23 18:23:00 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

obvious unsigned char cast for ctype
ok jca

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 7 11:13:54 2013 UTC (11 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Allow a '+' in the MAILTO email adress; from Constantine A. Murenin

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 22 19:32:42 2011 UTC (12 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.35: +19 -19 lines
Diff to previous 1.35 (colored)

Use standard EXIT_SUCCESS/EXIT_FAILURE and STD{IN,OUT,ERR}_FILENO
defines instead of using custom macros.  OK deraadt@ gilles@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 3 15:08:14 2011 UTC (13 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.34: +3 -1 lines
Diff to previous 1.34 (colored)

Reset the SIGPIPE signal handler immediately before executing a command.
We ignore it by default so cron doesn't die if sendmail is missing
or exits prematurely but the actual command being run should have the
default handler installed.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Dec 14 23:32:06 2010 UTC (13 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Use _exit() not exit() after forking.  OK deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:51 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.32: +1 -5 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Fri May 25 17:50:41 2007 UTC (17 years ago) by millert
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, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.31: +13 -10 lines
Diff to previous 1.31 (colored)

Check fdopen() return value.
Ignore SIG_PIPE when writing to sendmail.  This allows cron to still
run jobs when sendmail is missing or broken (a warning will be logged).
Move mailto variable to the same scope as mail and use the mail
variable, not mailto, to test whether we have an open pipe to the mailer.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Apr 10 17:14:43 2007 UTC (17 years, 2 months ago) by miod
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

privledges -> privileges

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 13 20:44:00 2006 UTC (17 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (colored)

Add Auto-Submitted header in generated mail as per RFC 3834.
OK henning@, ckuethe@, krw@, ian@.  From Tamas TEVESZ.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 17 22:11:55 2004 UTC (19 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.28: +14 -13 lines
Diff to previous 1.28 (colored)

UUpdate ISC copyright year to 2004
Remove unused macros Skip_Line and MkLower
Remove trailing whitespace

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 6 23:56:26 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Fix typo in last commit for non-compiled code.  Dmitry V. Levin

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 3 19:54:04 2004 UTC (20 years ago) by millert
Branch: MAIN
Changes since 1.26: +16 -15 lines
Diff to previous 1.26 (colored)

More changes from Dmitry V. Levin:

Check return values for setgid, initgroups and setuid in code we don't compile.
Print the correct filename for the at job in mail sent.
Add some #if DEBUGGING in cron.c's usage().
Set sunlen each time before using it in accept().
Don't send mail at all if MAILTO is set but empty.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Apr 26 17:15:37 2004 UTC (20 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (colored)

isalnum() does not match '_' so check it explicitly.  This allows cron
to send mail to usernames with a '_' in them.  From David Gwynne.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 30 20:20:01 2003 UTC (20 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Use (char *)NULL instead of (char *)0 in execl and execle; Andrey Matveev

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 14 15:58:13 2003 UTC (21 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.23: +4 -13 lines
Diff to previous 1.23 (colored)

Use setproctitle() instead of the CAPITALIZE_FOR_PS hack.  Inspired
by similar changes in FreeBSD and NetBSD.  For at jobs, include the
job number in the proctitle.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 20 20:38:08 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.22: +13 -10 lines
Diff to previous 1.22 (colored)

Sync with ISC cron-current + my at(1) integration.
The at(1) code is now more tightly integrated into the cron codebase.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 8 18:17:50 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.21: +3 -5 lines
Diff to previous 1.21 (colored)

Move closelog() into log_close() function and call that instead
of calling closelog() (with #ifdefs) directly.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 15 22:38:36 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

fix typo (pw vs. pwd) in unused code

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 15 22:16:50 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.19: +12 -4 lines
Diff to previous 1.19 (colored)

Pass e->pwd to auth_setpwd() to avoid extra passwd lookup in BSD auth routines

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 15 19:13:29 2002 UTC (21 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.18: +34 -32 lines
Diff to previous 1.18 (colored)

Move atrun(8) functionality into cron(8) proper.  This fixes the
long-standing annoyance that atrun's granularity is 10 minutes.
Most at jobs run with a 1 minute granularity.  Jobs submitted via
"at now" or "batch" will run immediately.  Includes a rewritten
cron(8) man page.  at(1) will be integrated more closely into
cron at a future date.

Upgrading notes:
    the atrun job in root's crontab should be removed.
    the /var/at/spool directory is no longer used

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 12 18:35:24 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Do not collapse \\ -> \ in a command, the shell will be unhappy with
bare backslashes.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 8 18:11:02 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Merge in some changes from Paul Vixie's tree; most are cosmetic
o ANSI function headers
o return (foo) not return foo
o add -oi to sendmail flags
o update email address in man pages
o make some strings const
o completely remove globbing cruft from popen.c
o whitespace changes
o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 23 03:07:19 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

uid_t and gid_t are unsigned

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 21 21:10:32 2002 UTC (21 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Correctly close the writing end of the pipe when dup'ing the fd to
stdout.  This was a pasto/thinko on my part.  Problem found by
jean-philippe wan-hoi.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 14 21:35:01 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

spelling; from Brian Poole <raj@cerias.purdue.edu>

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

Fix gethostname() usage.

deraadt@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 9 00:51:00 2002 UTC (22 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Kill volatile now that jongjmp is history.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 24 17:28:16 2001 UTC (22 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.10: +14 -11 lines
Diff to previous 1.10 (colored)

When becoming a daemon, dup stdin, stdout, and stderr to /dev/null
Change an unsafe vfork() to fork()
Fix dup2() usage--must check for oldd == newd case and no need to close oldd
Fixes annoying messages from sendmail about stdout being closed.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 18 19:48:33 2001 UTC (23 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +126 -167 lines
Diff to previous 1.9 (colored)

Update to ISC cron 4.0b1 + our patches.  This is now under a BSD license.
I also fixed the signal handlers while I was at it.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 21 21:08:56 2000 UTC (23 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

snprintf sprinkles; solar@false.com & I

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 20 18:42:42 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.7: +38 -3 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Sat Jun 3 15:36:38 2000 UTC (24 years ago) by millert
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Set SIGCHLD to SIG_DFL not SIG_IGN to prevent "perl -w" from
complaining "Can't ignore signal CHLD, forcing to default".

Setting SIGCHLD to SIG_IGN means "don't provide exit status for my
children" on some OSes which is not what we want--we just don't
want to catch SIGCHLD since our parent does that for us.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 28 20:13:13 1999 UTC (24 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Run sendmail as the user corresponding to the crontab entry.
This keeps a user from abusing sendmail via the MAILTO var.
Had to drop -or0s from MAILARGS since that causes sendmail
to drop its privs (contrary to the sendmail docs).

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 8 20:17:18 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.4: +11 -2 lines
Diff to previous 1.4 (colored)

when handling % line breaks, correctly handle escaped % which should be embedded; fenner@parc.xerox.com

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 30 06:59:43 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.3: +14 -5 lines
Diff to previous 1.3 (colored)

Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various places

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 22 08:10:42 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

handle timing normally except when clock jumps between 1 and 3 hours. If it
jumps, attempt as best as possible to gaurantee that jobs DO run, but only
run ONCE; patch by thompson@.tgsoft.com

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 7 06:18:33 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

setlogin(username)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:47:30 1995 UTC (28 years, 7 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:47:30 1995 UTC (28 years, 7 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.