Todd C. Miller
6c28af1556
Use ROOT_UID not 0.
2011-05-18 13:07:35 -04:00
Todd C. Miller
7960bde2db
Minor warning/error message cleanup
2011-05-18 13:04:24 -04:00
Todd C. Miller
fce0b906eb
cannot -> "unable to" in warning/error messages
2011-05-18 12:41:06 -04:00
Todd C. Miller
6f8cd91928
can't -> "unable to" in warning/error messages
2011-05-18 12:36:26 -04:00
Todd C. Miller
159d7e393a
FreeBSD needs the main sudo executable to link with -lpam when
...
loading dynaic pam modules for some reason.
2011-05-18 11:18:44 -04:00
Todd C. Miller
917c8d48ad
We don't want to translate debugging messages.
2011-05-17 18:37:18 -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
19a81af6b0
Fix caching of libc gettext check.
2011-05-17 15:55:23 -04:00
Todd C. Miller
4810662e98
Mark defaults descriptions for translation
2011-05-17 12:52:20 -04:00
Todd C. Miller
1a75992b8c
Update for sudo 1.8.1p2
2011-05-17 11:59:40 -04:00
Todd C. Miller
f6aea10724
Quiet compiler warning when SELinux is enabled.
2011-05-16 16:52:34 -04:00
Todd C. Miller
c234363562
Add missing includes of libintl.h.
2011-05-16 16:50:09 -04:00
Todd C. Miller
d006b00a4f
Fix gettext marker.
2011-05-16 16:44:11 -04:00
Todd C. Miller
15bc74bd67
Include libint.h where needed.
2011-05-16 16:37:11 -04:00
Todd C. Miller
b643b190a7
Prepare sudoers module messages for translation.
2011-05-16 16:32:05 -04:00
Todd C. Miller
24a087709a
Only check gid of sudoers file if it is group-readable.
2011-05-16 12:19:07 -04:00
Todd C. Miller
7708d5ce84
For AIX, keep calling authenticate() until reenter reaches 0.
2011-05-16 12:17:49 -04:00
Todd C. Miller
4ff045b266
Cache the status of the initial gettext() check.
2011-05-09 11:04:19 -04:00
Todd C. Miller
1994db70da
Add --disable-nls flag and improve checks for gettext.
2011-05-09 10:58:52 -04:00
Todd C. Miller
411737cf25
When building with gcc on HP-UX, use -march=1.1 to produce portable
...
binaries on a pa-risc2 host. Previously, the +Dportable option was
used for the HP-UX C compiler but gcc always produced native binaries.
2011-05-09 10:02:16 -04:00
Todd C. Miller
c865a462cc
Prepare sudo front end messages for translation.
2011-05-06 17:47:51 -04:00
Todd C. Miller
96b7c1f0f4
Add initial scaffolding to support localization via gettext()
2011-05-04 15:26:31 -04:00
Todd C. Miller
5c3fbfd733
Don't let the fnmatch/glob macros expand the function prototype.
2011-05-04 11:21:03 -04:00
Todd C. Miller
a1f6db3a0c
Resolve namespace collisions on HP-UX ia64 and possibly others by
...
adding a rpl_ prefix to our fnmatch and glob replacements and
#defining rpl_foo to foo in the header files.
2011-05-03 13:45:56 -04:00
Todd C. Miller
4dd3440cb6
Split ALL, ROLE and TYPE into their own actions. Since you can
...
only have #ifdefs inside of braces, ROLE and TYPE use a naughty
goto in the non-SELinux case. This is safe because the actions are
in one big switch() statement.
2011-04-29 16:05:50 -04:00
Todd C. Miller
189817a313
Fix regexp for matching a CIDR-style IPv4 netmask. From Marc Espie.
2011-04-29 11:22:49 -04:00
Todd C. Miller
8a76ddfef5
askpass moved from sudoers to sudo.conf in sudo 1.8.0
2011-04-27 11:48:46 -04:00
Todd C. Miller
38f7dd359b
Remove obsolete warning about runas_default and ordering.
...
Move syslog facility and priority lists into the section where
the relevant options are described.
2011-04-27 11:42:46 -04:00
Todd C. Miller
435d8413b5
Fix SIA support; we no longer have access to the real argc and argv
...
so allocate space for a fake one and use the argv passed to the
plugin with "sudo" for argv[0].
2011-04-26 09:51:34 -04:00
Todd C. Miller
7dfb27fb3b
Remove useless realloc when trying to get the buffer size right.
2011-04-23 06:14:36 -04:00
Todd C. Miller
7c35601cf3
Be explicit when setting euid to 0 before call to setreuid(0, 0)
2011-04-23 06:13:48 -04:00
Todd C. Miller
f1bea0a215
Need to do checks for krb5_verify_user, krb5_init_secure_context
...
and krb5_get_init_creds_opt_alloc regardless of whether or not
krb5-config is present.
2011-04-18 09:22:26 -04:00
Todd C. Miller
b08ad6083b
Work around weird AIX saved uid semantics on setuid() and setreuid().
...
On AIX, setuid() will only set the saved uid if the euid is already 0.
2011-04-15 12:30:08 -04:00
Todd C. Miller
2f24216e85
update copyright year
2011-04-14 16:41:38 -04:00
Todd C. Miller
c6ad6d29e5
Treat a missing includedir like an empty one and do not return an error.
2011-04-14 14:27:11 -04:00
Todd C. Miller
55c3dfe39d
Fix ARCH setting in cross-compile Solaris packages.
2011-04-12 11:52:41 -04:00
Todd C. Miller
cf5e8d9b77
Fix aix version setting.
2011-04-12 11:50:20 -04:00
Todd C. Miller
b00cf92eff
Remove extraneous parens in LDAP filter when sudoers_search_filter
...
is enabled that causes a search error. From Matthew Thomas.
2011-04-12 11:48:04 -04:00
Todd C. Miller
2af2174092
Correct sizeof() to fix test failure.
2011-04-11 11:41:38 -04:00
Todd C. Miller
365bd63e6c
"install" target should depend on "install-dirs".
...
Fixes "make -j" problem and closes bz #487 . From Chris Coleman.
2011-04-11 08:27:59 -04:00
Todd C. Miller
1e72fa9127
Add HAVE_RFC1938_SKEYCHALLENGE
2011-04-07 07:04:26 -04:00
Todd C. Miller
11b133232d
Mention plugin loading and libgcc changes
2011-04-06 17:57:10 -04:00
Todd C. Miller
b6d0a28efb
Load plugins after parsing arguments and potentially printing the
...
version. That way, an error loading or initializing a plugin doesn't
break "sudo -h" or "sudo -V".
2011-04-06 17:51:36 -04:00
Todd C. Miller
4b4f5bf32c
When using a sub-shell to invoke the sub-make, exec make instead of
...
running it inside the shell to avoid an extra process.
2011-04-06 15:32:04 -04:00
Todd C. Miller
60e9e4dd83
Stop testing unspecified behavior in fnmatch
...
Make glob test more portable
2011-04-06 15:13:23 -04:00
Todd C. Miller
8720363f33
No need to add current dir to include path and having it breaks the
...
test programs that expect to get the system glob.h and fnmatch.h
2011-04-06 15:12:34 -04:00
Todd C. Miller
f52a6ccae4
Fix and document --with-plugindir; partially from Diego Elio Petteno
2011-04-06 12:02:49 -04:00
Todd C. Miller
f949dbcc58
Fix fnmatch and glob tests to not use hard-coded flag values in the
...
input file. Link test programs with libreplace so we get our
replacement verions as needed.
2011-04-06 10:57:39 -04:00
Todd C. Miller
698c5002d1
If make in a subdir fails, fail the target in the upper level Makefile too.
...
Adapted from a patch from Diego Elio Petteno
2011-04-06 10:15:54 -04:00
Todd C. Miller
233d90f2c3
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
...
has this. Adapted from a patch from Diego Elio Petteno
2011-04-06 10:08:57 -04:00