Todd C. Miller
4e1b157c57
Make gcc shutup about unused rcsid
2003-03-14 15:43:49 +00:00
Todd C. Miller
0932bf305f
Move the n == 0 check for the non-getifaddrs cas
2003-03-14 15:35:54 +00:00
Todd C. Miller
27ffee8ac0
skeychallenge() on NetBSD take a size parameter
2003-03-14 02:47:55 +00:00
Todd C. Miller
9cafae7a6b
regen
2003-03-14 02:38:13 +00:00
Todd C. Miller
50b049dcc9
put -ldl after -lpam, not before; fixes static linking on Linux
2003-03-14 02:38:06 +00:00
Todd C. Miller
debf9f09c5
Avoid malloc(0) and fix the loop invariant for the getifaddrs() case.
2003-03-14 02:17:38 +00:00
Todd C. Miller
af7c4632f1
regen
2003-03-14 01:24:37 +00:00
Todd C. Miller
7aa90a9bb9
regen
2003-03-14 01:24:30 +00:00
Todd C. Miller
fc65ea65c8
Preserve copyright notice from .pod file in .man.in file
2003-03-14 01:23:19 +00:00
Todd C. Miller
e0037d9ad7
Add sudoers(5) to SEE ALSO
2003-03-14 01:01:04 +00:00
Todd C. Miller
8656452cae
regen
2003-03-13 20:27:38 +00:00
Todd C. Miller
a01f25b5f1
Don't assume libc can realloc() a NULL string.
...
If malloc/realloc fails, make sure we just return; yyerror() is not terminal.
2003-03-13 20:27:09 +00:00
Todd C. Miller
1725de8772
regen
2003-03-13 20:17:41 +00:00
Todd C. Miller
9ae8aadee5
simplify fill_args a little and use strlcpy for paranoia
2003-03-13 20:17:14 +00:00
Todd C. Miller
a822179f56
regen
2003-03-13 20:02:20 +00:00
Todd C. Miller
eebc763bd3
Use strlc{at,py} for paranoia's sake and exit on overflow. In all
...
cases the strings were either pre-allocated to the correct size of
length checks were done before the copy but a little paranoia can
go a long way.
2003-03-13 20:00:45 +00:00
Todd C. Miller
a54c8e66fa
Add strlc{at,py} protos
2003-03-13 17:54:04 +00:00
Todd C. Miller
7ce95c61c8
Use erealloc3()
2003-03-13 17:03:23 +00:00
Todd C. Miller
006e64f61e
regen
2003-03-13 17:00:51 +00:00
Todd C. Miller
5b40c964de
Oflow test of nmemb > SIZE_MAX / size is fine (don't need >=).
...
Use memcpy() instead of strcpy() in estrdup() so this is strcpy()-free.
2003-03-13 17:00:31 +00:00
Todd C. Miller
96376b6d4e
snprintf() a uid as %lu, not %ld to match the MAX_UID_T_LEN test in
...
configure.
2003-03-13 16:58:25 +00:00
Todd C. Miller
4df44eea5d
In MAX_UID_T_LEN test cast uid_t to unsigned long, just unsigned.
2003-03-13 16:56:38 +00:00
Todd C. Miller
804caf3956
Use snprintf() for paranoia
2003-03-12 23:46:54 +00:00
Todd C. Miller
35b2800a8a
Use emalloc2 and erealloc3
2003-03-12 22:16:13 +00:00
Todd C. Miller
6cb46fd4e0
strlc{at,py} for those w/o it
2003-03-12 22:08:29 +00:00
Todd C. Miller
cfa77cedee
stlc{at,py} for those w/o it.
2003-03-12 22:07:36 +00:00
Todd C. Miller
285791c42f
Add stlc{at,py} for those w/o it.
2003-03-12 22:07:26 +00:00
Todd C. Miller
838ec0a2ca
Add erealloc3(), a realloc() version of emalloc2().
2003-03-12 21:51:39 +00:00
Todd C. Miller
c96a62e26c
Use emalloc2() to allocate N things of a certain size.
2003-03-12 21:45:51 +00:00
Todd C. Miller
8b4248529e
Add emalloc2() -- like calloc() but w/o the bzero and with error/oflow
...
checking.
2003-03-12 21:41:22 +00:00
Todd C. Miller
8e041c3f35
Error out on malloc(0); suggested by theo
2003-03-12 21:23:40 +00:00
Todd C. Miller
450a561933
fix a typo; David Krause
2003-03-10 00:34:09 +00:00
Todd C. Miller
fc387e982d
fix typo
2003-03-07 15:46:18 +00:00
Todd C. Miller
466216fe8e
Remove DYLD_ from the environment for MacOS X; from bbraun
2003-03-04 02:47:24 +00:00
Todd C. Miller
7a7a5fe2e0
not not; Anil Madhavapeddy
2003-03-01 18:21:20 +00:00
Todd C. Miller
4a48a0f679
typos; jmc@openbsd.org
2003-01-23 08:03:51 +00:00
Todd C. Miller
b34e373908
Add some missing ';' rule terminators that bison warns about.
2003-01-20 21:13:42 +00:00
Todd C. Miller
5478ef4e29
fix typo I introduced in last merge
2003-01-20 21:07:51 +00:00
Todd C. Miller
f1b0329256
regenerate with autoconf 2.57
2003-01-20 20:59:08 +00:00
Todd C. Miller
dfd0d2829d
Add missing "$HOME"
2003-01-20 20:58:48 +00:00
Todd C. Miller
cf76450aef
Add some more square backets to make autoconf 2.57 happy
2003-01-20 20:57:51 +00:00
Todd C. Miller
fe79cba0b3
Updates from autoconf-2.57
2003-01-20 19:39:04 +00:00
Todd C. Miller
e73dd504b3
Updates from autoconf-2.57
2003-01-20 19:39:04 +00:00
Todd C. Miller
270e6cab72
regen
2003-01-17 23:10:05 +00:00
Todd C. Miller
26d9f4856f
regen
2003-01-17 23:10:05 +00:00
Todd C. Miller
a8153f4d5d
Add support for Defaults>RunasUser
2003-01-17 23:09:45 +00:00
Todd C. Miller
6e118c64b5
fclose() yyin after each yyparse() is done and use fopen() instead of
...
using freopen().
2003-01-07 00:10:04 +00:00
Todd C. Miller
8b3c38d20c
Better fix for sudoers files w/o a newline before EOF. It looks
...
like the issue is that yyrestart() does not reset the start condition
to INITIAL which is an issue since we parse sudoers multiple times.
2003-01-07 00:02:33 +00:00
Todd C. Miller
cce84a1811
Work around what appears to be a flex bug when dealing with files
...
that lack a final newline before EOF. This adds a rule to match
EOF in the non-initial states which resets the state to INITIAL and
throws an error.
2003-01-06 23:47:04 +00:00
Todd C. Miller
35cf881d76
o The parser needs sudoers to end with a newline but some editors (emacs) may
...
not add one. Check for a missing newline at EOF and add one if needed.
o Set quiet flag during initial sudoers parse (to get options)
o Move yyrestart() call and always use freopen() to open yyin after
initial sudoers parse.
2003-01-06 20:06:12 +00:00