OpenBSD CVS

CVS log for src/usr.bin/sudo/Attic/sudo.c


[BACK] Up to [local] / src / usr.bin / sudo

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.49, Fri Jul 3 21:51:54 2015 UTC (8 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: HEAD
Changes since 1.48: +0 -0 lines
FILE REMOVED

Remove sudo, it is now in ports.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Dec 7 14:53:29 2013 UTC (10 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.47: +1 -2 lines
Diff to previous 1.47 (colored)

When checking whether a user may change the login class, just check
pw_uid of the runas user, which was passed in to set_loginclass().

Revision 1.47 / (download) - annotate - [select for diffs], Wed Nov 6 21:30:56 2013 UTC (10 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.46: +5 -2 lines
Diff to previous 1.46 (colored)

Back port remainder of use_loginclass fix from sudo 1.7.9.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Apr 29 00:28:23 2013 UTC (11 years ago) by okan
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 (colored)

use FD_CLOEXEC instead of 1; from David Hill

ok otto

Revision 1.45 / (download) - annotate - [select for diffs], Tue Mar 19 00:48:08 2013 UTC (11 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44 (colored)

Fix use_loginclass, backport from upstream.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 10 21:51:49 2013 UTC (11 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.43: +1 -24 lines
Diff to previous 1.43 (colored)

Remove obsolete code that used to change the mode of sudoers from
the old (pre-1.6) default.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 8 21:11:31 2010 UTC (13 years, 10 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, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.42: +8 -5 lines
Diff to previous 1.42 (colored)

Update sudo to version 1.7.2p8

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 11 21:32:28 2010 UTC (14 years, 2 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.41: +1 -1 lines
Diff to previous 1.41 (colored)

Fix intended use of closefrom() so that we do indeed close fd 3 and up by
default and make -C work as expected.

fine by kettenis@, beck@, millert@

Revision 1.41 / (download) - annotate - [select for diffs], Thu Mar 4 12:21:36 2010 UTC (14 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.40: +0 -4 lines
Diff to previous 1.40 (colored)

Remove old $Sudo$ tags; the main sudo tree no longer lives in cvs.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Dec 7 18:43:10 2009 UTC (14 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.39: +11 -6 lines
Diff to previous 1.39 (colored)

update to sudo 1.7.2p2

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jun 21 14:48:42 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.38: +23 -8 lines
Diff to previous 1.38 (colored)

Upgrade to sudo 1.7.2

Revision 1.38 / (download) - annotate - [select for diffs], Sat Apr 11 11:48:06 2009 UTC (15 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.37: +89 -38 lines
Diff to previous 1.37 (colored)

Update to sudo 1.7.1

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 9 00:14:52 2009 UTC (15 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.36: +9 -7 lines
Diff to previous 1.36 (colored)

Do not try to set the close on exec flag if we didn't actually open sudoers.
Fixes a crash when sudoers owenership is wrong found by thib@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Nov 22 16:33:42 2008 UTC (15 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.35: +1 -1 lines
Diff to previous 1.35 (colored)

sync with sudo repo

Revision 1.35 / (download) - annotate - [select for diffs], Sat Nov 15 05:11:39 2008 UTC (15 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34 (colored)

classic C compatibility (no statements before decls)

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 14 11:58:08 2008 UTC (15 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.33: +524 -460 lines
Diff to previous 1.33 (colored)

Upgrade to sudo 1.7.  See the WHATSNEW files for details.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 31 16:44:03 2008 UTC (15 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.32: +82 -25 lines
Diff to previous 1.32 (colored)

Update to sudo 1.6.9p17

Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 21 01:16:52 2007 UTC (16 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

update to sudo 1.6.9p10

Revision 1.31 / (download) - annotate - [select for diffs], Mon Dec 3 15:09:48 2007 UTC (16 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored)

update to sudo 1.6.9p9

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 17 04:26:04 2007 UTC (16 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

Update to sudo 1.6.9p6

Revision 1.29 / (download) - annotate - [select for diffs], Wed Sep 5 23:55:57 2007 UTC (16 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.28: +14 -6 lines
Diff to previous 1.28 (colored)

update to sudo 1.6.9p5

Revision 1.28 / (download) - annotate - [select for diffs], Wed Aug 15 14:22:39 2007 UTC (16 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.27: +22 -5 lines
Diff to previous 1.27 (colored)

Update to sudo 1.6.9p4.  Basically IPv6 support and improved man pages.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 26 16:10:16 2007 UTC (16 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.26: +377 -230 lines
Diff to previous 1.26 (colored)

Update to sudo 1.6.9p1.  Note that the environment handling in sudo
1.6.9 has changed relative to older versions.  Sudo now starts
commands with a minimal environment containing the variables in the
env_keep and env_check lists.  This behavior is configurable in the
sudoers file.  Please see the "SECURITY NOTES" section in the sudo
manual.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Tue Jun 21 00:17:41 2005 UTC (18 years, 11 months ago) by brad
Branch: OPENBSD_3_7
Changes since 1.24: +2 -8 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

MFC:
Fix by millert@

A race condition in Sudo's command pathname handling prior to
Sudo version 1.6.8p9 that could allow a user with Sudo privileges
to run arbitrary commands.

ok millert@

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Tue Jun 21 00:10:23 2005 UTC (18 years, 11 months ago) by brad
Branch: OPENBSD_3_6
Changes since 1.22: +2 -8 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

MFC:
Fix by millert@

A race condition in Sudo's command pathname handling prior to
Sudo version 1.6.8p9 that could allow a user with Sudo privileges
to run arbitrary commands.

ok millert@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 19 22:00:08 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.25: +2 -8 lines
Diff to previous 1.25 (colored)

Update to sudo 1.6.8p9

Revision 1.25 / (download) - annotate - [select for diffs], Tue May 31 21:13:43 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

update to sudo 1.6.8p8

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jan 31 18:53:33 2005 UTC (19 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE
Branch point for: OPENBSD_3_7
Changes since 1.23: +6 -0 lines
Diff to previous 1.23 (colored)

Warn if the user tries to use the -u option w/o running a command.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 28 15:10:51 2004 UTC (19 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.22: +277 -148 lines
Diff to previous 1.22 (colored)

Update to sudo 1.6.8p1

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jan 12 19:13:21 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_5_BASE, OPENBSD_3_5
Branch point for: OPENBSD_3_6
Changes since 1.21: +2 -21 lines
Diff to previous 1.21 (colored)

Use closefrom() if it exists; from the sudo cvs repo

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 23 02:19:51 2003 UTC (20 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.20: +8 -2 lines
Diff to previous 1.20 (colored)

If we are in -k/-K mode, just spew to stderr.  It is not unusual
for users to place "sudo -k" in a .logout file which can cause sudo
to be run during reboot after ypbind has died.  Previously, this
would result in useless mail and logging.  Requested by mickey@

Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 19 21:57:17 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.19: +10 -5 lines
Diff to previous 1.19 (colored)

sync w/ the sudo cvs tree and sudo 1.6.7p4

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 3 19:15:34 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.18: +49 -76 lines
Diff to previous 1.18 (colored)

Sync with my sudo cvs repo:
 o update to sudo 1.6.7p2
 o use warn/err throughout

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 1 15:47:51 2003 UTC (21 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Update to sudo 1.6.7p1; fixes false positives in the oflow detection
of expand_prompt() introduced in sudo 1.6.7.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 15 21:23:54 2003 UTC (21 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.16: +91 -62 lines
Diff to previous 1.16 (colored)

update to what will soon be sudo 1.6.7

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 25 15:49:03 2002 UTC (22 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored)

Update to sudo 1.6.6

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Fri Jan 18 17:20:23 2002 UTC (22 years, 4 months ago) by millert
Branch: OPENBSD_2_9
Changes since 1.9: +214 -394 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

update to sudo 1.6.5p1

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Jan 18 16:14:46 2002 UTC (22 years, 4 months ago) by millert
Branch: OPENBSD_3_0
Changes since 1.10: +212 -394 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

update to sudo 1.6.5p1

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 16 18:09:13 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +8 -7 lines
Diff to previous 1.14 (colored)

update to sudo 1.6.4p2

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jan 15 02:17:03 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.13: +11 -13 lines
Diff to previous 1.13 (colored)

update to sudo 1.6.4p1

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 14 00:11:44 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.12: +16 -1 lines
Diff to previous 1.12 (colored)

sync with sudo 1.6.4-final

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 8 15:44:25 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.11: +8 -4 lines
Diff to previous 1.11 (colored)

sync with sudo 1.6.4rc2

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 3 03:49:16 2002 UTC (22 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.10: +185 -385 lines
Diff to previous 1.10 (colored)

Update to sudo 1.6.4

Revision 1.10 / (download) - annotate - [select for diffs], Thu Aug 23 21:46:17 2001 UTC (22 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE
Branch point for: OPENBSD_3_0
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

If we fail to lookup a login class, apply the default one.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Dec 15 14:35:58 2000 UTC (23 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE
Branch point for: OPENBSD_2_9
Changes since 1.8: +2 -0 lines
Diff to previous 1.8 (colored)

Give sensible error messaage for a zero-length sudoers file.
From the sudo cvs repo.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 21 17:58:44 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.7: +58 -72 lines
Diff to previous 1.7 (colored)

A few updates from the sudo developement tree:
- Add bsd authentication support (currently disabled)
- Always check setenv() return value
- Fix umask disabling

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 13 21:58:52 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.6: +1 -6 lines
Diff to previous 1.6 (colored)

update to sudo 1.6.3p5

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 5 14:01:15 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.5: +18 -20 lines
Diff to previous 1.5 (colored)

Update to sudo 1.6.3p4

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 28 23:17:43 2000 UTC (24 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Make the -H option work again.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 27 03:44:39 2000 UTC (24 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.3: +161 -18 lines
Diff to previous 1.3 (colored)

sudo 1.6.3; see http://www.courtesan.com/sudo/current.html for a list
of changes.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 24 04:22:53 2000 UTC (24 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.2: +23 -21 lines
Diff to previous 1.2 (colored)

sudo 1.6.2

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 10 06:45:11 1999 UTC (24 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.1: +65 -39 lines
Diff to previous 1.1 (colored)

sudo 1.6.1

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Nov 18 16:29:01 1999 UTC (24 years, 6 months ago) by millert
Branch: COURTESAN
CVS Tags: SUDO_1_6_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

sudo 1.6, now with a BSD license

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 18 16:29:01 1999 UTC (24 years, 6 months ago) by millert
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.