Todd C. Miller
d17da315a1
regen
2001-10-05 20:39:13 +00:00
Todd C. Miller
8fb718e7f4
sco now is identified by config.guess as *-sco-*
2001-10-05 20:39:05 +00:00
Todd C. Miller
89f2ab84d8
Check for getspnam() in -lgen if not in -lc for UnixWare.
2001-10-05 20:24:14 +00:00
Todd C. Miller
ace935f8aa
"upper case" -> "uppercase"
2001-09-18 01:48:48 +00:00
Todd C. Miller
51dd80bd78
fix typos and grammar; pjanzen@foatdi.harvard.edu
2001-09-18 01:32:35 +00:00
Todd C. Miller
12a9783318
Missing word (specify); krapht@secureops.com
2001-08-28 14:26:38 +00:00
Todd C. Miller
29871e4422
If we fail to lookup a login class, apply the default one.
2001-08-23 21:43:38 +00:00
Todd C. Miller
b31b73f071
In log_error() free message, not logline unconditionally, then
...
free logline if it is not the same as message. No function change
but this mirrors how they are allocated.
2001-08-23 21:42:31 +00:00
Todd C. Miller
944044e30d
regenerate
2001-07-17 03:33:57 +00:00
Todd C. Miller
7f8d2fb3e1
remove some backslash quotes that are unneeded
2001-07-17 03:33:48 +00:00
Todd C. Miller
4969fa5365
o Tweaks to make this work with autoconf-2.50
...
o Use AC_LIBOBJ instead of changing LIBOBJS directly
o Use AC_REPLACE_FUNCS where we can
o Use AC_CHECK_FUNCS instead of AC_CHECK_FUNC so we don't have to
AC_DEFINE things manually.
2001-07-17 03:30:30 +00:00
Todd C. Miller
cb79789ac0
Updated from autoconf-2.50
2001-07-17 03:28:31 +00:00
Todd C. Miller
0c3273aaf9
Update mailing list section. We use mailman now, not majordomo.
2001-05-22 23:11:21 +00:00
Todd C. Miller
11127e3468
Use setpwent()/endpwent() + all the shadow variants to make sure
...
we don't inadvertantly leak an fd to the child. Apparently Linux's
shadow routines leave the fd open even if you don't call setspent().
Reported by mike@gistnet.com ; different patch used.
2001-05-10 18:55:12 +00:00
Todd C. Miller
993409b90f
s/eg./e.g./
2001-04-13 01:43:40 +00:00
Todd C. Miller
2d9fb0a5ab
select() may return EAGAIN. If so, continue like we do for EINTR.
2001-04-13 01:42:50 +00:00
Todd C. Miller
9dd02e2fb9
Fix a non-exploitable buffer overflow in the word splitting code. This
...
should really be rewritten.
2001-04-13 01:41:57 +00:00
Todd C. Miller
c70104020b
FAQ link goes away
2001-04-13 01:41:04 +00:00
Todd C. Miller
224c77f5a3
Tell people to look in sample.syslog.conf for examples, not FAQ
2001-04-13 01:40:47 +00:00
Todd C. Miller
af93a44226
Update list of env vars that are cleared
2001-04-13 01:40:15 +00:00
Todd C. Miller
646bd70349
remove struct env_table decl since that stuff has all moved to env.c
2001-04-13 01:36:59 +00:00
Todd C. Miller
a6b005f256
Fix a pasto in flock-style unlocking and include <sys/file.h> for flock
...
on older systems; twetzel@gwdg.de
2001-04-04 17:17:04 +00:00
Todd C. Miller
6fcf09f562
regen to get NeXT lockf/flock fix
2001-04-04 17:14:52 +00:00
Todd C. Miller
a788475e5d
force NeXT to use flock since lockf is broken
2001-04-04 17:14:13 +00:00
Todd C. Miller
4f69069533
Use stashed user_gid when checking against exempt gid since sudo
...
sets its gid to a a value that makes sudoers readable. Previously
if you used gid 0 as the exempt group everyone would be exempt.
From Paul Kranenburg <pk@cs.few.eur.nl >
2001-03-30 13:54:27 +00:00
Todd C. Miller
4f1ff9a1ea
regen
2001-03-29 18:14:55 +00:00
Todd C. Miller
e2282d3e42
#include stdio.h in SUDO_CHECK_TYPE since IRIX 6 aparently defines some
...
types (such as ssize_t) therein.
2001-03-29 18:08:56 +00:00
Todd C. Miller
a64a6abd33
Fix negation of paths in a boolean context. Problem found by apt@UH.EDU
2001-03-02 14:09:55 +00:00
Todd C. Miller
132f59534d
pasto
2001-02-23 18:03:46 +00:00
Todd C. Miller
394ececcb8
SA_RESETHAND means the opposite of what I was thinking--oops
...
To block all signals in old-style signals use ~0, not 0xffffffff
2001-02-17 21:11:41 +00:00
Todd C. Miller
422021aebd
coerce difference of pointers to int when used in a string length printf
...
format; deraadt@openbsd.org
2001-02-04 16:16:20 +00:00
Todd C. Miller
af80178b85
Block all signals in Exit() to avoid a signal race. There is still a
...
tiny window but I'm not going to worry about it.
2001-01-17 16:34:36 +00:00
Todd C. Miller
aeb8cefc42
glibc uses the LANGUAGE env var so clear that too; Solar Designer
2001-01-07 18:57:23 +00:00
Todd C. Miller
f0a75258b9
Regenerate with a fix to flex.skl that preserves errno from clobbering
...
by isatty().
2001-01-07 18:55:32 +00:00
Todd C. Miller
16e6a3b84a
Some defaults I_ defines got renamed.
2000-12-31 01:39:06 +00:00
Todd C. Miller
d956d77528
Move defaults info into its own files from which we generate
...
.h and .c files. This makes adding or rearranging variables
much simpler.
2000-12-31 01:38:37 +00:00
Todd C. Miller
4ca4d65152
fix typo in last commit
2000-12-30 21:58:11 +00:00
Todd C. Miller
5481e22892
Add check + emulation for setegid (like seteuid).
2000-12-30 21:55:21 +00:00
Todd C. Miller
1875e47474
Make env_keep override badenv_table as documented
...
Fix traversal of badenv_table (broken in last commit)
2000-12-30 21:22:08 +00:00
Todd C. Miller
572b4cf39a
Don't try and build saved uid version of set_perms on systems w/o them.
...
Rename set_perms_saved_uid() -> set_perms_posix()
Make set_perms_setreuid simply be set_perms_fallback() and simply include
the appropriate function at compile time (setreuid() vs. setuid()).
2000-12-30 03:59:40 +00:00
Todd C. Miller
9318379d83
PATH is also preserved when env_reset is in effect
2000-12-30 03:45:31 +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
f88c0c930b
Clear up --without-passwd description
2000-12-30 03:17:58 +00:00
Todd C. Miller
679fee0f5a
We now build up a new environment from scratch and assign it to "environ".
2000-12-30 00:39:36 +00:00
Todd C. Miller
211d8c7de0
Grammatical fixes from Paul Janzen
2000-12-19 03:35:07 +00:00
Todd C. Miller
6448c3523e
If there was a syntax error and the user just wants to quit, unlink
...
sudoers if it is zero length.
2000-12-15 04:19:24 +00:00
Todd C. Miller
f14cf7973d
'Q' means ignore parse error, not 'q'
2000-12-15 04:10:54 +00:00
Todd C. Miller
02559d3447
Open sudoers for writing with mode SUDOERS_MODE
...
From Dimitry Andric <dim@xs4all.nl >
2000-12-15 03:57:53 +00:00
Todd C. Miller
744917ed67
Add missing #ifdef HAVE_LOGIN_CAP_H; ayamura@ayamura.org
2000-12-13 17:23:07 +00:00
Todd C. Miller
21cdac6b02
Darwin / Mac OS X support from Wilfredo Sanchez <wsanchez@apple.com>
2000-12-09 16:46:19 +00:00