Todd C. Miller
713e419fe9
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:11 +00:00
Todd C. Miller
2154e5f092
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:10 +00:00
Todd C. Miller
7ed41967ab
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:10 +00:00
Todd C. Miller
362d6f4eb6
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:10 +00:00
Todd C. Miller
ba803b6e1b
Remove trailing spaces, no actual code changes.
2004-06-06 23:58:09 +00:00
Todd C. Miller
983bdcb223
regen
2004-06-06 20:22:56 +00:00
Todd C. Miller
318cd646fe
Fix a >=0 that should be <0 that was improperly converted when UNSPEC was added.
2004-06-06 20:22:20 +00:00
Todd C. Miller
4e73e5c38c
Add do {} while(0) around pop macro
...
Set cmnd_matches to UNSPEC, not NOMATCH when resetting it.
2004-06-06 19:54:23 +00:00
Todd C. Miller
a5c99554d4
Fix pastos introduced in SETNMATCH addition.
2004-06-06 19:39:56 +00:00
Todd C. Miller
2aa69afaa2
Update for configure changes
2004-06-05 17:55:58 +00:00
Todd C. Miller
f8e2108d41
regen
2004-06-05 17:42:16 +00:00
Todd C. Miller
a99f53e2fa
Add NOMATCH and UNSPEC defines (-1 and -2 respectively) and use
...
these in parse.yacc. Also in parse.yacc initialize the *_matches
vars to UNSPEC and add two macros, SETMATCH and SETNMATCH for use
when setting *_matches to a value that may be NOMATCH/UNSPEC/TRUE/FALSE.
2004-06-05 17:42:04 +00:00
Todd C. Miller
46e37d41a9
Add NOMATCH and UNSPEC defines (-1 and -2 respectively) and use
...
these in parse.yacc. Also in parse.yacc initialize the *_matches
vars to UNSPEC and add two macros, SETMATCH and SETNMATCH for use
when setting *_matches to a value that may be NOMATCH/UNSPEC/TRUE/FALSE.
2004-06-05 17:42:04 +00:00
Todd C. Miller
385372b4d7
Initialize runas to -2, not -1 since we need to be able to distinguish
...
between the initialized value and the value of a non-match when
passing along the runas value to multiple commands.
The result of this is that an unmatched runas is now set to -1, not 0.
This is required now that parse.c treats a FALSE value for runas as
being explicitly denied.
2004-06-05 15:17:10 +00:00
Todd C. Miller
3e1e279d21
Error out if argc < 1.
2004-06-03 20:21:07 +00:00
Todd C. Miller
46fa001640
Error out if argc < 1.
2004-06-03 20:21:07 +00:00
Todd C. Miller
24dd77986d
Add tests for what libs we need to link with for ldap and for whether
...
or not lber.h needs to be explicitly included.
2004-06-03 16:37:32 +00:00
Aaron Spangler
1158691104
Solaris native LDAP build fix
2004-06-03 00:30:44 +00:00
Todd C. Miller
23da57f9fe
Set edn to NULL is ldap_get_dn() fails to avoid potential use of an unset
...
variable.
2004-06-01 20:56:52 +00:00
Todd C. Miller
03d1a9ed49
Add prototype for sudo_ldap_list_matches
2004-06-01 20:56:03 +00:00
Todd C. Miller
e009af0c9c
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
610da19a89
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
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
cebfa4c030
Only check /proc/$$/fd if we have the dirfd function/macro.
2004-06-01 20:51:56 +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
a79bb72689
dirfd() is now defined in compat.h as needed.
2004-06-01 18:59:28 +00:00
Todd C. Miller
d55466c021
Clarify closefrom() note.
2004-06-01 18:30:50 +00:00
Todd C. Miller
b954f0bc94
When checking for a command in the directory, only copy the base dir once.
2004-06-01 16:51:06 +00:00
Todd C. Miller
e2a573d6cc
If there is a /proc/$$/fd directory, behave like the Solaris closefrom()
...
and only close the descriptors listed therein.
2004-06-01 16:44:14 +00:00
Todd C. Miller
5cb8b83496
compat.h guarantees INT_MAX is defined.
2004-06-01 16:23:32 +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
3bce9860fb
sync
2004-05-31 23:18:39 +00:00
Todd C. Miller
13b900c844
Add some entries that were mailed in a while ago
2004-05-31 23:10:12 +00:00
Todd C. Miller
2f323ada7f
o sysconf returns a long, not an int.
...
o check for negative return value from sysconf/getdtablesize and use
OPEN_MAX in this case.
o define OPEN_MAX to 256 for those without it (a fair guess...)
2004-05-31 18:16:34 +00:00
Todd C. Miller
8d8bc778d1
Mention change in parse order for RunAs entries.
2004-05-30 16:25:19 +00:00
Todd C. Miller
2d8fab3078
regen
2004-05-30 16:15:26 +00:00
Todd C. Miller
f64a92347d
o --with-ldap now takes an optional dir as a parameter
...
o added check for ldap_initialize() and start_tls_s()
2004-05-29 22:29:42 +00:00
Todd C. Miller
286f747801
Fix some typos, word choice and formatting issues.
2004-05-29 18:54:53 +00:00
Todd C. Miller
f8176ceda2
Use SA_INTERRUPT so SunOS works correctly, avoid stdio and just use read/write
...
as it is simpler.
2004-05-28 22:06:50 +00:00
Todd C. Miller
1a76be42f6
Remove hack overriding cross-compiler check. It should no longer be needed.
2004-05-28 20:27:41 +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
47b833d4c2
Use alarm() instead of select() for the timeout for systems that don't
...
fully/properly implement select().
2004-05-28 20:24:13 +00:00
Todd C. Miller
97f43c49fe
synbc
2004-05-27 23:14:43 +00:00
Todd C. Miller
051826c8c4
update
2004-05-27 23:12:37 +00:00
Todd C. Miller
b5376f8d21
Deal with systems that have no way of setting the effective uid such as
...
nsr-tandem-nsk.
2004-05-27 23:12:02 +00:00
Todd C. Miller
e4506e81a3
Define NO_SAVED_IDS if we don't find seteuid()
2004-05-27 23:01:39 +00:00
Todd C. Miller
224f05ad1a
Add back check for setreuid() since NSK doesn't have it.
2004-05-27 22:21:47 +00:00
Todd C. Miller
d94c6f36b0
regen
2004-05-27 19:57:53 +00:00
Todd C. Miller
4ffe050bc1
sync
2004-05-27 19:56:03 +00:00