Todd C. Miller
0414ea4579
Fix typos.
2015-02-09 11:39:28 -07:00
Todd C. Miller
2e32bb10fe
Fix compilation on systems w/o __dso_public
2015-02-09 08:52:19 -07:00
Todd C. Miller
9206ba54c5
Russian translation for sudoers from translationproject.org.
2015-02-07 07:47:39 -07:00
Todd C. Miller
cecdd7e728
Russian translation for sudoers from translationproject.org.
2015-02-06 15:28:04 -07:00
Todd C. Miller
3eb9a854d8
Add check for getresuid() declaration, which may be missing on HP-UX.
...
When checking for getdomainname() prototype, look in netdb.h too.
2015-02-06 11:33:30 -07:00
Todd C. Miller
c3c28773f5
Sanity check the TZ environment variable by special casing it in
...
env_check. The --with-tzdir configure option can be used to
specify the zoneinfo directory if configure doesn't find it.
2015-02-06 11:01:05 -07:00
Todd C. Miller
de11816198
Mention crash fixes.
2015-02-06 10:56:52 -07:00
Todd C. Miller
0008747bef
Bail with usage() early if argc <= 0.
2015-02-06 09:17:39 -07:00
Todd C. Miller
c299cdd665
Remove extraneous casts of node->data (which is void *).
2015-02-05 15:01:25 -07:00
Todd C. Miller
5218f74e86
Add Stephane Chazelas
2015-02-05 14:57:04 -07:00
Todd C. Miller
cebd92a88e
Fix a potential crash when getpwnam() of the running user fails
...
and we don't replace the negative cached entry with a faked up one.
From Stephane Chazelas
2015-02-05 11:17:26 -07:00
Todd C. Miller
67eba7e534
Don't assume argv[0] is set without first checking argc.
2015-02-05 11:17:25 -07:00
Todd C. Miller
b727d4309c
Handle sudo_get_grlist() returning NULL which can happen if
...
getgrouplist() fails even after allocating the appropriate amount
of memory. From Stephane Chazelas
2015-02-05 11:17:24 -07:00
Todd C. Miller
6d71b488b6
Call setprogname("sudo") if getprogname() returns NULL or the empty
...
string.
2015-02-05 11:17:24 -07:00
Todd C. Miller
88f79588e0
Remove configure checks for strrchr() and strtoll() for which the
...
HAVE_* defines are no longer used.
2015-02-05 11:17:22 -07:00
Todd C. Miller
a3435e7d12
Require POSIX regular expression support for sudoreplay.
2015-02-05 11:16:06 -07:00
Todd C. Miller
1e30824a1a
The plugin no longer needs to call initprogname() now that it links
...
with the same libsudo_util as sudo.
2015-02-05 11:08:55 -07:00
Todd C. Miller
1bb633a210
Check whether getdomainname(), innetgr(), setresuid() and setresgid()
...
are declared and add prototypes in sudo_compat.h as needed.
2015-02-05 11:08:55 -07:00
Todd C. Miller
3f82c8e578
Add /usr/local/share/examples/ directory to parentdirs so it is
...
explicitly added to the package.
2015-02-04 09:38:25 -07:00
Todd C. Miller
ed4ffa6265
Don't send mail about pseudo-command failure unless it is an
...
authentication failure.
2015-02-02 15:01:06 -07:00
Todd C. Miller
dfb369198a
Sync with translationproject.org
2015-02-04 06:28:31 -07:00
Todd C. Miller
d1ce08369a
Sync with translationproject.org
2015-02-04 06:23:57 -07:00
Todd C. Miller
2033be83c6
Regen with yacc skeleton that the clang analyzer doesn't complain about.
2015-02-03 15:58:09 -07:00
Todd C. Miller
a9bf105eda
Use stdint.h to get SIZE_MAX as inttypes.h on some pre-C99 HP-UX
...
systems doesn't include stdint.h itself.
2015-02-03 10:00:30 -07:00
Todd C. Miller
a17d562fdb
SIZE_MAX may be in limits.h on pre-C99 compilers.
2015-02-03 07:33:26 -07:00
Todd C. Miller
f2a554f297
Add missing prototypes for usrinfo() and setauthdb() for AIX.
2015-02-03 07:33:25 -07:00
Todd C. Miller
536c83cec3
Solaris uses sysinfo(SI_SRPC_DOMAIN) instead of getdomainname() to
...
get the host's NIS domain.
2015-02-03 07:33:24 -07:00
Todd C. Miller
7fdbbf16a4
Remove AC_PROG_GCC_TRADITIONAL and add AC_PROG_CC_STDC since we
...
need C99.
2015-02-02 20:10:50 -07:00
Todd C. Miller
15717c518e
Actually use the check for prior initialization in sudo_getdomainname().
2015-02-02 15:38:03 -07:00
Todd C. Miller
109a866fb5
We need to add OSDEFS to CFLAGS to expose LLONG_MAX et al on glibc
...
when not explicitly asking for c99.
2015-02-02 15:36:12 -07:00
Todd C. Miller
bb19428fce
Fix check for SIZE_MAX, which should be in stdint.h not limits.h.
2015-02-02 14:36:38 -07:00
Todd C. Miller
fd149e632e
Need to include inttypes.h for SIZE_MAX
2015-02-02 14:20:24 -07:00
Todd C. Miller
fde8776d54
regen
2015-02-02 13:53:44 -07:00
Todd C. Miller
59ab26dbcc
Go back to a 2 args debug_decl and just use the "default" instance,
...
now renamed "active".
2015-02-01 08:24:49 -07:00
Todd C. Miller
e71726d0f9
Update copyright year.
2015-01-31 19:02:40 -07:00
Todd C. Miller
7ec9cfb493
When querying LDAP netgroups, use the NIS domain if it is sent but
...
also match nisNetgroupTriple entries that have no domain.
2015-01-30 14:45:22 -07:00
Todd C. Miller
97469c243c
Avoid setting the tty to non-blocking mode so "sudoreplay | cat"
...
(for example) works as expected. We only read a single byte from
the keyboard and only when interactive anyway so this should be fine.
2015-01-30 13:07:21 -07:00
Todd C. Miller
00e7dbd645
regen
2015-01-30 12:57:27 -07:00
Todd C. Miller
0ac881ba4b
Avoid a cppcheck warning about undefined behavior (using the address
...
of a stack buffer - 1) and fix a memory leak of the iov when
doing nl->crnl conversion.
2015-01-30 10:45:15 -07:00
Todd C. Miller
1517d18b1d
Add Steven Soulen
2015-01-30 09:24:46 -07:00
Todd C. Miller
770e6ca190
Fix handling of partial writes from writev() which can occur with
...
large output buffers.
2015-01-30 09:23:30 -07:00
Todd C. Miller
4dd2a3c6b8
Add support for querying netgroups directly via LDAP since there
...
is no other way to look up all the netgroups for a user (unlike
regular groups). This introduces netgroup_base and netgroup_search_filter
options to ldap.conf. Based on a diff from Steven Soulen.
2015-01-29 14:08:30 -07:00
Todd C. Miller
4ae3ab43c0
Sort ldap.conf options.
2015-01-27 09:29:02 -07:00
Todd C. Miller
741bb8ec79
Add macros to ease the checking of strlcpy, strlcat and
...
sudo_ldap_value_cat return values.
2015-01-22 11:42:32 -07:00
Todd C. Miller
57553fffdd
Rename VALIDATE_OK -> VALIDATE_SUCCESS
...
Rename VALIDATE_NOT_OK -> VALIDATE_FAILURE
2015-01-21 11:03:48 -07:00
Todd C. Miller
399d364a90
Remove now-unused VALIDATE_ERROR define.
2015-01-21 10:36:55 -07:00
Todd C. Miller
5415b3d2af
should_mail() now returns bool.
2015-01-21 10:33:56 -07:00
Todd C. Miller
2188c83a20
If sudo_debug_register() fails return SUDO_DEBUG_INSTANCE_INITIALIZER,
...
not -1. Otherwise we could end up setting the instance to -1 which
is invalid.
2015-01-21 10:08:41 -07:00
Todd C. Miller
721cab85e7
Fix typo.
2015-01-21 08:51:41 -07:00
Todd C. Miller
716e6a991a
Use "mandoc -Tascii" to generate .cat pages to avoid locale-specific
...
characters.
2015-01-21 08:51:27 -07:00