Todd C. Miller
c8fc35b0a6
Add timeradd and timersub for those without them
2009-09-03 23:53:06 +00:00
Todd C. Miller
3bfce30a85
First cut at session logging for sudo. Still need to write get_pty()
...
for Unix 98 and old-style BSD ptys. Also needs documentation and
general cleanup.
2009-08-06 00:04:14 +00:00
Todd C. Miller
840acbd3ac
Update copyright years.
2008-11-09 14:13:13 +00:00
Todd C. Miller
48329f0e43
Add isblank() function for systems without it. Needed for POSIX
...
character class matching in fnmatch.c and glob.c.
2008-11-03 18:19:14 +00:00
Todd C. Miller
3bb5c181b0
Move declatation of struct timespec to its own include files for
...
systems without it since it needs time_t defined.
2005-06-23 03:04:35 +00:00
Todd C. Miller
c2f6b93ada
No longer need memmove()
2005-02-20 17:28:25 +00:00
Todd C. Miller
778d587063
Update copyright years.
2005-02-12 22:56:07 +00:00
Todd C. Miller
b3b65fb7fc
Add __printflike and use it with gcc to warn about printf-like format mismatches
2005-02-11 23:06:35 +00:00
Todd C. Miller
f780611c33
use bcopy on systems w/o memmove
2005-02-06 03:56:38 +00:00
Todd C. Miller
8f0c64f677
__attribute__((__unused__)) doesn't work in gcc 2.7.2.1 so limit its
...
use to gcc >= 2.8.
2005-02-06 03:31:53 +00:00
Todd C. Miller
3b8b88407f
Add __unused to rcsids
2005-01-27 15:42:30 +00:00
Todd C. Miller
8a33025986
Use __attribute__((__noreturn__))
2004-09-30 17:55:21 +00:00
Todd C. Miller
dc3bbe24c5
Fix Solatis futimes macro
2004-09-10 16:31:15 +00:00
Todd C. Miller
0f056c0d5f
Use timespec throughout.
2004-09-08 15:48:23 +00:00
Todd C. Miller
54789c8fbd
Add a check for struct timespec and provide it for those without.
2004-09-07 20:36:31 +00:00
Todd C. Miller
1c20ff1a6d
Use utimes() and futimes() instead of utime() in touch(), emulating as needed.
...
Not all systems are able to support setting the times of an fd so touch()
takes both an fd and a file name as arguments.
2004-09-07 17:14:52 +00:00
Todd C. Miller
362d6f4eb6
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:10 +00:00
Todd C. Miller
330d2ff424
Better check for dirfd macro--we now set HAVE_DIRFD for the macro version too.
...
Added check for dd_fd in `DIR' if no dirfd is found; this is now used to
confitionally define the dirfd macro in compat.h.
2004-06-01 20:53:31 +00:00
Todd C. Miller
54cb0921de
Add a check for a dirfd() function (like Linux) and add a dirfd
...
macro in compat.h if there is no dirfd() function or macro.
2004-06-01 19:13:37 +00:00
Todd C. Miller
3970195197
Add definitions of OPEN_MAX and INT_MAX for those without it and remove
...
definition of RLIM_INFINITY (now unused).
2004-06-01 16:23:10 +00:00
Todd C. Miller
d33ad95208
Use PATH_MAX, not MAXPATHLEN since the former is standardized.
2004-06-01 01:22:27 +00:00
Todd C. Miller
c0ee2095b9
Remove select() compat bits since we no longer use select().
2004-05-28 20:26:08 +00:00
Todd C. Miller
51c9ed3198
Preliminary changes to support nsr-tandem-nsk. Based on patches from
...
Tom Bates.
2004-05-17 20:08:46 +00:00
Todd C. Miller
5b217d36a3
More to a less restrictive, ISC-style license.
2004-02-13 21:36:43 +00:00
Todd C. Miller
769b205c00
We don't use FD_ZERO anymore so just define FD_SET (if not already there).
2003-08-12 20:45:22 +00:00
Todd C. Miller
492367bd62
add DARPA credit on affected files
2003-04-16 00:42:09 +00:00
Todd C. Miller
dcf1a5acce
Use warn/err and getprogname() throughout. The main exception is
...
openlog(). Since the admin may be filtering logs based on the
program name in the log files, hard code this to "sudo".
2003-04-02 18:25:30 +00:00
Todd C. Miller
48229cbac6
update copyright year
2003-03-15 20:31:02 +00:00
Todd C. Miller
351fcc1386
No long need to emulate set*[ug]id() via setres[ug]id() or setre[ug]id().
...
The new set_perms stuff only uses things it knows are there.
2002-11-22 19:05:02 +00:00
Todd C. Miller
d1bb1bc099
HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY. If there is no
...
RLIM_INFINITY, just pretend it is -1. This works because we only
check for RLIM_INFINITY and do not set anything to that value.
2002-01-25 18:38:22 +00:00
Todd C. Miller
a82e7a8efe
(c) 2002
2002-01-08 15:00:18 +00:00
Todd C. Miller
a3e429aed9
Move in some stuff that was previously in config.h.
2002-01-02 22:37:19 +00:00
Todd C. Miller
66d801055c
Use new HAVE_SIGACTION_T define
2001-12-14 23:38:31 +00:00
Todd C. Miller
47dff37185
o Update copyright year
2001-12-14 19:54:56 +00:00
Todd C. Miller
fb66a33153
Add scaffolding for POSIX signal emulation
2001-12-08 19:39:28 +00:00
Todd C. Miller
5481e22892
Add check + emulation for setegid (like seteuid).
2000-12-30 21:55:21 +00:00
Todd C. Miller
998631b73a
New Defaults options:
...
o stay_setuid - sudo will remain setuid if system has saved uids or setreuid(2)
o env_reset - reset the environment to a sane default
o env_keep - preserve environment variables that would otherwise be cleared
No longer use getenv/putenv/setenv functions--do environment munging by hand.
Potentially dangerous environment variables can be cleared only if they
contain '/' pr '%' characters to protect buggy programs.
Moved environment routines into env.c (new file)
2000-12-30 03:29:47 +00:00
Todd C. Miller
4fdb825a09
Add check for _innetgr(3) since NCR systems have that instead of
...
innetgr(3).
2000-11-01 15:17:25 +00:00
Todd C. Miller
2c4fefde5a
o Add requiretty option
...
o Move O_NOCTTY to compat.h
1999-10-08 01:12:50 +00:00
Todd C. Miller
76148d5316
o Move lock_file() and touch() into fileops.c so visudo can use them
...
o Visudo now locks the sudoers temp file instead of bailing when
the temp file already exists. This fixes the problem of stale
temp files but it does *require* that you not try to put the
temp file in a world-writable directory. This shoud not be
an issue as the temp file should live in the same dir as sudoers.
o Visudo now only installs the temp file as sudoers if it changed.
1999-08-07 09:59:43 +00:00
Todd C. Miller
fdb5da47ae
kill crufty AIX stuff
1999-08-05 14:25:35 +00:00
Todd C. Miller
ca8eb6f2aa
add 4th term to license similar to term 5 in the apache license
1999-07-31 16:19:45 +00:00
Todd C. Miller
e4ea15963d
BSD-style copyright; Add S_IFLNK and MIN/MAX id they are missing.
1999-07-22 12:42:02 +00:00
Todd C. Miller
80287c981c
Move interface-related defines to interfaces.h so we don't have to include
...
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
850a52aa6f
o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
...
It turns out the old DES crypt does the right thing with passwords
longert than 8 characters.
o Fix common typo (necesary -> necessary)
o Update TODO list
1999-05-14 16:30:14 +00:00
Todd C. Miller
e6deacb6c4
Crank version to 1.6 and combine copyright statements
1999-04-05 20:57:25 +00:00
Todd C. Miller
79c46d1c81
++version
1999-03-29 04:05:15 +00:00
Todd C. Miller
52916f16ac
add explicate copyright
1999-02-03 04:32:19 +00:00
Todd C. Miller
826fe213f2
add sudo tags
1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283
crank version and regen files
1999-01-17 22:40:55 +00:00