Todd C. Miller
645b5c1c7e
Fix C format warnings.
2011-05-19 16:21:59 -04:00
Todd C. Miller
67cc4ff025
Translate help / usage strings.
2011-05-19 16:07:14 -04:00
Todd C. Miller
42a3966a88
Minor warning/error cleanup
2011-05-18 13:44:36 -04:00
Todd C. Miller
fce0b906eb
cannot -> "unable to" in warning/error messages
2011-05-18 12:41:06 -04:00
Todd C. Miller
c3a259f5ee
Add calls to bindtextdomain() and textdomain()
...
Currently there are two domains, one for the sudo front-end and
one for the sudoers plugin and its associated utilities.
2011-05-17 16:38:40 -04:00
Todd C. Miller
c234363562
Add missing includes of libintl.h.
2011-05-16 16:50:09 -04:00
Todd C. Miller
b643b190a7
Prepare sudoers module messages for translation.
2011-05-16 16:32:05 -04:00
Todd C. Miller
85e8e584ae
Add support for replaying sessions when iolog_file is set to something
...
other than %{seq}.
2011-03-04 20:10:44 -05:00
Todd C. Miller
59515a4a6d
add help text to sudo, visudo and sudoreplay for the -h option
2011-02-21 11:33:36 -05:00
Todd C. Miller
39d9feb438
The howmany macro lives in sys/sysmacros.h on SVR5 systems
...
Closes Bug 470
2011-02-19 08:23:46 -05:00
Todd C. Miller
4294650039
#include "foo.h", not <foo.h> for local includes.
2011-02-07 10:51:43 -05:00
Todd C. Miller
ae2f7638f5
standardize on "return foo;" rather than "return(foo);" or "return (foo);"
2011-01-24 15:15:18 -05:00
Todd C. Miller
f7f8b6867e
Update copyright year to 2011
2011-01-20 16:46:56 -05:00
Todd C. Miller
2fb085dfac
change an error() to errorx()
2010-12-30 17:02:43 -05:00
Todd C. Miller
d739608a80
missing.h should come before most local includes
2010-09-07 18:28:55 -04:00
Todd C. Miller
10c3bb62c4
Make local includes consistent; use double quotes for local includes
...
except for generated ones where we use angle brackets.
Also g/c unused compat.h.
2010-09-07 16:45:19 -04:00
Todd C. Miller
f454727bb8
Merge compat.h and missing.h into missing.h
2010-08-16 14:05:44 -04:00
Todd C. Miller
420db23714
Quiet gcc warnings on glibc systems that use warn_unused_result for
...
write(2) and others.
2010-08-03 11:17:56 -04:00
Todd C. Miller
5d06ad3b6b
Some getline() implementations (FreeBSD 8.0) do not ignore the
...
length pointer when the line pointer is NULL as they should.
2010-07-27 10:48:35 -04:00
Todd C. Miller
c33bf93509
Don't need to check for *cp being non-zero, isdigit() will do that.
2010-07-27 10:12:24 -04:00
Todd C. Miller
18d25e96f0
Add setlocale() so the command line arguments that use floating
...
point work in different locales. Since sudo now logs the timing
data in the C locale we must Parse the seconds in the timing file
manually instead of using strtod(). Furthermore, sudo 1.7.3 logged
the number of seconds with the user's locale so if the decimal point
is not '.' try using the locale-specific version.
2010-07-27 09:49:54 -04:00
Todd C. Miller
a3e4db1244
Use errorx() not error() for thingsthat don't set errno.
2010-07-27 07:50:43 -04:00
Todd C. Miller
d8acd34031
Add LINE_MAX define for those without it.
2010-07-20 15:34:30 -04:00
Todd C. Miller
30fe4a067c
Set usrinfo for AIX
...
Set adminstrative domain for the process when looking up user's
password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
different things. Fixes warnings on AIX and others.
2010-06-29 13:08:05 -04:00
Todd C. Miller
ebc152ce8f
Check for zlib.h in addition to libz.
2010-06-16 16:51:46 -04:00
Todd C. Miller
1025a2ec06
Add -f (filter) option to sudoreplay to allow certain streams to
...
be replayed and others ignored.
2010-06-15 16:11:25 -04:00
Todd C. Miller
b72a530fd0
Update copyright year
2010-06-14 12:19:49 -04:00
Todd C. Miller
c6371aa481
Silence some compiler warnings
2010-06-10 12:27:18 -04:00
Todd C. Miller
be3b7d615a
Fix typo in ternary operator usage.
2010-06-01 09:44:54 -04:00
Todd C. Miller
2dd29bf64d
Break sudoers transcript feature up into log_input and log_output.
2010-05-30 10:31:38 -04:00
Todd C. Miller
1a217bcc22
Use setprogname() as needed.
2010-05-30 06:35:21 -04:00
Todd C. Miller
0e2d33b5fc
Adapt sudoreplay to iolog changes.
2010-05-30 06:29:41 -04:00
Todd C. Miller
1ffb761789
Fix EAGAIN handling when writing to stdout.
2010-05-28 13:24:07 -04:00
Todd C. Miller
c2d0888bf9
No need to use pseudo-cbreak mode now that we use pipes when stdout is
...
not a tty. Instead, check whether stdin is a tty and if not, delay
setting the tty to raw mode until the command tries to access it itself
(and receives SIGTTIN or SIGTTOU).
2010-05-10 17:23:35 -04:00
Todd C. Miller
d346e50903
Use angle brackets when including headers that can only be found when
...
an -I flag is specified. The files in the compat dir could get away
with double quotes here but I've converted all the source files
to use angle brackets for consistency.
2010-04-30 15:13:47 -04:00
Todd C. Miller
05ae3ea6cb
Convert to ANSI C function declarations
2010-04-22 18:09:53 -04:00
Todd C. Miller
d5ae4c7d87
Kill __P in sudoers
2010-03-17 19:56:27 -04:00
Todd C. Miller
d6187f5ad3
Replace emul/include.h with compat/include.h to match new source
...
tree layout.
2010-02-20 09:22:30 -05:00
Todd C. Miller
e90fa482f9
Rework source layout in preparation for modular sudo.
2010-02-20 09:14:01 -05:00