Todd C. Miller
07a804caf3
Quiet sign comparision warnings.
2013-10-23 15:03:31 -06:00
Todd C. Miller
f4d2978f30
Add -Wsign-compare to --enable-warnings
2013-10-23 15:02:22 -06:00
Todd C. Miller
994879c044
Ignore SIGPIPE when connecting to the LDAP server so we can get a
...
proper error message with the IBM LDAP libs. Also return LDAP_SUCCESS
instead of 0 from most sudo_ldap_* functions that return an int.
2013-10-23 11:15:24 -06:00
Todd C. Miller
340fc0a583
Quiet compiler warnings.
2013-10-23 09:43:36 -06:00
Todd C. Miller
29361ec003
sudo_ldap_parse_uri() should join multiple URIs in the string list
...
together but it was clearing the host entry each time through the
loop. Fixes a bug with multiple URI entries in ldap.conf where
only the last one was being honored.
2013-10-22 16:52:23 -06:00
Todd C. Miller
d825a58943
Avoid a double free introduced when plugging a memory leak in
...
safe_close(). A new ev_free_by_fd() function is used to remove and
free any events sharing the specified fd. This can be used after
safe_close() to make sure we don't try to select() on a closed fd.
2013-10-22 15:54:41 -06:00
Todd C. Miller
e8ce021e7d
Quiet some llvm check false positives. The common idiom of using
...
TAILQ_FIRST, TAILQ_REMOVE and free in a loop to free each entry in
a TAILQ confuses llvm. Use TAILQ_FOREACH_SAFE instead (which is
probably faster anyway).
2013-10-22 14:58:00 -06:00
Todd C. Miller
65c6f34aa4
If pam_open_session() fails don't call pam_getenvlist() with a NULL
...
pam handle.
2013-10-22 14:47:51 -06:00
Todd C. Miller
798e82bd61
Fix newly introduced use after frees found by llvm checker.
2013-10-22 10:43:15 -06:00
Todd C. Miller
b2cba83688
Remove an errant list_next() call that should have been removed
...
in the TAILQ conversion.
2013-10-22 09:33:12 -06:00
Todd C. Miller
b38d253e98
Add "headless" tail queues and use them in place of the semi-circular
...
lists in sudoers. Once the headless tail queue is built up it is
converted to a normal TAILQ. This removes the last consumer of
list.c and list.h so those can now be removed.
2013-10-22 09:08:38 -06:00
Todd C. Miller
f85106ea67
Use SLIST and STAILQ macros instead of doing headless singly linked
...
lists manually. As a bonus we now use a tail queue for ldap.c and
sudoreplay.c.
2013-10-22 09:08:09 -06:00
Todd C. Miller
923edabe6c
Convert sudo to use BSD TAILQ macros instead of home ground tail
...
queue functions. This includes a private queue.h header derived
from FreeBSD. It is simpler to just use our own header rather than
try to deal with macros that may or may not be present in various
queue.h incarnations.
2013-10-22 09:00:37 -06:00
Todd C. Miller
fe0e953e9b
Fix AND operator broken by changes to fix OR.
2013-10-21 16:00:29 -06:00
Todd C. Miller
2c8d5add86
Fix OR operator.
2013-10-19 16:59:08 -06:00
Todd C. Miller
04588f6136
Fix memory leak of I/O buffer events in safe_close().
2013-10-18 16:28:49 -06:00
Todd C. Miller
69ab48f16d
Don't allow the debug subsystem to be initialized twice.
...
Otherwise we can exhuast our stack when built in static mode.
2013-10-16 16:44:21 -06:00
Todd C. Miller
6a5d6f9e9e
Make sure we do not try to usie index -1 in base->pfds[].
2013-10-16 16:08:54 -06:00
Todd C. Miller
58f71c00ec
Bump version to 1.8.9
2013-10-14 11:00:12 -06:00
Todd C. Miller
b985948e72
Convert the monitor process to the event subsystem.
2013-10-12 05:57:42 -06:00
Todd C. Miller
83d2d25c4c
Convert the main sudo event loop to use the event subsystem.
...
Read events for I/O buffers are added before the loop starts.
Write events are added on demand as the buffers are filled.
2013-10-12 05:53:52 -06:00
Todd C. Miller
79acd5db49
Simple event subsystem that uses poll() or select(). Basically a
...
simplied subset of libevent2. Currently only fd events are supported
(since that's all we need). The poll() backend is used by default,
except on Mac OS X where poll() is broken for devices (including
/dev/tty and ptys).
2013-10-12 05:53:43 -06:00
Todd C. Miller
ff18c65862
Use SOCK_STREAM for socketpair, not SOCK_DGRAM so we get consistent
...
semantics when the other end closes. This should make the conversion
to poll() less problematic.
2013-10-12 05:39:02 -06:00
Todd C. Miller
a6b4f41103
Fix removal of trailing newlines in a debug message.
2013-10-06 14:22:14 -06:00
Todd C. Miller
020fb00948
When checking for unused Runas_Aliases, count those used as part
...
of a Runas Group too. Fixes a false positive warning.
2013-10-04 16:22:25 -06:00
Todd C. Miller
e223df6908
Include stddef.h for rsize_t and errno_t on systems that support
...
it natively.
2013-09-29 18:35:34 -06:00
Todd C. Miller
48d7c407e0
Fix braino.
2013-09-29 15:09:43 -06:00
Todd C. Miller
fc332461ed
Rebuild message catalog files.
2013-09-29 15:04:11 -06:00
Todd C. Miller
4b5021fed5
Rebuild message catalog files.
2013-09-29 14:59:18 -06:00
Todd C. Miller
aff3320f3f
Czech translation for sudo from translationproject.org.
2013-09-29 14:45:28 -06:00
Todd C. Miller
4b10880f82
Sync with translationproject.org
2013-09-18 11:49:24 -06:00
Todd C. Miller
9a657e884d
Change "next" back to 2. In the context of "next Friday" we really
...
do want the friday of the upcoming (not current) week. Unfortunately,
this means that things like "next week" and "next year" will match
one more than we really want. Fixing this will require some fairly
major changes to the grammar.
2013-09-18 11:48:26 -06:00
Todd C. Miller
d197e42d4b
Mention that relative times don't always do what you might expect.
2013-09-18 11:48:07 -06:00
Todd C. Miller
e6833bed7a
Add diacritical for Zdenek Behan.
2013-09-17 11:57:01 -06:00
Todd C. Miller
c91c5343eb
Do not fail if ttyname() cannot determine the tty but sudo can.
...
Should fix problems with running "make check" under pbuilder.
2013-09-11 11:20:05 -06:00
Todd C. Miller
5d56fd5f83
Remove extraneous $$CWD; from Bdale Garbee
2013-09-11 11:15:47 -06:00
Todd C. Miller
e59d5624d9
Make "this" and "next" qualifiers work a bit better. There is still
...
room for improvement as "this week" will use the current time instead
of the beginning of the week. That's a separate issue though.
2013-09-09 16:41:27 -06:00
Todd C. Miller
4fbcde304d
Mark main() public to silence a warning on HP-UX.
2013-09-06 10:17:00 -06:00
Todd C. Miller
bd52869056
Be specific that we are talking about the Unix epoch; bug #615
2013-09-03 14:50:28 -06:00
Todd C. Miller
6b0a909d9a
Do not use "setup" as a verb; bug #614
2013-09-03 14:47:34 -06:00
Todd C. Miller
6b57ef4f6d
Fix logic goof when checking open() status.
2013-09-03 11:24:31 -06:00
Todd C. Miller
13fd13e17c
Sync with translationproject.org
2013-09-03 09:40:53 -06:00
Todd C. Miller
b2d0bdee20
Work around a bug in sudo 1.8.7 timing files where the indexes are
...
off by two.
2013-09-03 09:39:35 -06:00
Todd C. Miller
422115d728
Repair writing of the I/O log file indices broken in sudo 1.8.7.
2013-09-03 09:22:44 -06:00
Todd C. Miller
92a3e13e6c
Try to improve the PAGERS noexec example a bit.
2013-08-31 06:11:25 -06:00
Todd C. Miller
55ea043a9b
Document comment character in ldap.conf
...
Clarify what is and is not supported in TLS_KEYPW
Mention that gsk8capicmd can be used to create a stash file
2013-08-30 14:27:26 -06:00
Todd C. Miller
596d94dc6e
New bugs fixed for 1.8.8.
2013-08-26 14:47:45 -06:00
Todd C. Miller
de566ac2ce
Fix setting of quiet flag when -q / --quiet is specified.
...
Do not print "sudoers: parsed OK" in quiet mode.
2013-08-26 14:40:25 -06:00
Todd C. Miller
316fe36126
Updated translations from translationproject.org
2013-08-26 07:04:49 -06:00
Todd C. Miller
3389108f10
Don't allow root to change its SELinux role without a password.
...
Bug #611
2013-08-26 07:04:19 -06:00