Commit Graph

1666 Commits

Author SHA1 Message Date
Todd C. Miller
fecb397343 Link libsudo_noexec.la with LDLDFLAGS for -static-libgcc 2011-08-01 19:02:16 -04:00
Todd C. Miller
eb09c303a1 Add new Russian sudo translation from translationproject.org
and rebuild the other translation files.
2011-07-30 09:35:56 -04:00
Todd C. Miller
8255ed69b9 Go back to escaping the command args for "sudo -i" and "sudo -s"
before calling the plugin.  Otherwise, spaces in the command args
are not treated properly.  The sudoers plugin will unescape non-spaces
to make matching easier.
2011-07-29 10:10:40 -04:00
Todd C. Miller
6365c779c0 Updated Ukranian and Chinese (simplified) po files from
translationproject.org
2011-07-28 09:08:50 -04:00
Todd C. Miller
3606fc4419 Rebuild pot files 2011-07-27 14:23:45 -04:00
Todd C. Miller
80138c88ba Remove fallback to per-group lookup when matching groups in sudoers.
The sudo front-end will now use getgrouplist() to get the user's
list of groups if getgroups() fails or returns zero groups so we
always have a list of the user's groups.  For systems with
mbr_check_membership() which support more that NGROUPS_MAX groups
(Mac OS X), skip the call to getgroups() and use getgrouplist() so
we get all the groups.
2011-07-25 09:17:18 -04:00
Todd C. Miller
022591f4bf Add a wrapper for setgroups() that trims off extra groups and retries
if setgroups() fails.  Also add some missing addrefs for PERM_USER
and PERM_FULL_USER.
2011-07-20 16:54:12 -04:00
Todd C. Miller
b124635b04 Instead of keeping separate groups and gids arrays, create struct
group_info and use it to store both, along with a count for each.
Cache group info on a per-user basis using getgrouplist() to get
the groups.  We no longer need special to special case the user or
list user for user_in_group() and thus no longer need to reset the
groups list when listing another user.
2011-07-20 11:58:45 -04:00
Todd C. Miller
906cede7ae Don't rely on NULL since we don't include a header for it. 2011-07-20 10:15:59 -04:00
Todd C. Miller
27316e6c53 Add Polish translation from translationproject.org 2011-07-17 10:12:10 -04:00
Todd C. Miller
76f427e8d7 Fix build error when --without-noexec configure option is used. 2011-07-05 12:20:10 -04:00
Todd C. Miller
2bd874febc Sync Chinese (simplified) PO files from translationproject.org 2011-06-20 08:30:10 -04:00
Todd C. Miller
26ec20f8b1 Add Danish translation from translationproject.org and add missing
Basque mo files.
2011-06-18 13:21:48 -04:00
Todd C. Miller
e95c7130d7 Add Basque translation and sync Finish and Ukranian translations. 2011-06-06 13:38:54 -04:00
Todd C. Miller
4f22a39803 Load plugins with RTLD_GLOBAL instead of RTLD_LOCAL. This fixes
problems with pam modules not having access to symbols provided by
libpam on some platforms.  Affects FreeBSD and SLES 10 at least.
2011-06-06 10:53:58 -04:00
Todd C. Miller
750c0d2ebe Regenerate .pot files for 1.8.2rc2 2011-06-04 18:27:59 -04:00
Todd C. Miller
e66169b3ed Move nls targets to the top level Makefile so the paths in
the pot file are saner
2011-06-04 18:27:13 -04:00
Todd C. Miller
e8064e25dd Add compiled version of sudo Finish translation 2011-06-04 10:14:41 -04:00
Todd C. Miller
3c9e5f28fc Fix compressed io log corruption in background mode by using _exit()
instead of exit() to avoid flushing buffers twice.

Improved background mode support.  When not allocating a pty, the
command is run in its own process group.  This prevents write access
to the tty.  When running in a pty, stdin is not hooked up and we
never read from /dev/tty, which results in similar behavior.
2011-05-31 12:49:22 -04:00
Todd C. Miller
1b67009ca1 Always allocate a pty when running a command in the background but
call setsid() after forking to make sure we don't end up with a
controlling tty.
2011-05-27 15:20:20 -04:00
Todd C. Miller
9b7cd235e7 README file that directs people to translationproject.org 2011-05-27 13:15:27 -04:00
Todd C. Miller
6fccd6bfda Sync translations with TP 2011-05-27 12:53:05 -04:00
Todd C. Miller
38db44b80c Include .mo files in sudo binary packags. 2011-05-27 10:17:34 -04:00
Todd C. Miller
47adbf8d33 Add simplified chinese translation 2011-05-27 07:54:52 -04:00
Todd C. Miller
c202c4e6d8 Add ukranian translation 2011-05-26 15:23:55 -04:00
Todd C. Miller
6c13614a51 Place compiled mo files in the src dir, not the build dir.
When installing compiled mo files, display a status message.
2011-05-26 11:12:54 -04:00
Todd C. Miller
78e235945f Auto-generate Makefile dependencies with a perl script. 2011-05-25 09:02:25 -04:00
Todd C. Miller
3833efaf04 Add dependencies on gettext.h 2011-05-22 13:31:48 -04:00
Todd C. Miller
9b3653fca0 Fix install-nls target with HP-UX sh when gettext is not present. 2011-05-22 10:10:43 -04:00
Todd C. Miller
f8df14034a regenerate .pot files for lbuf changes 2011-05-20 15:33:34 -04:00
Todd C. Miller
bd36d4f2ab Add primitive format string support to the lbuf code to make translations
simpler.
2011-05-20 15:25:03 -04:00
Todd C. Miller
681547c5fa Add message catalog template files for sudo and the sudoers module. 2011-05-20 13:20:14 -04:00
Todd C. Miller
bf7e7b5752 Add gettext.h convenience header. This is similar to but distinct from
the one included with the gettext package.
2011-05-20 11:48:17 -04:00
Todd C. Miller
67cc4ff025 Translate help / usage strings. 2011-05-19 16:07:14 -04:00
Todd C. Miller
d2384297a0 Set --msgid-bugs-address to the bugzilla url 2011-05-19 16:06:53 -04:00
Todd C. Miller
3164f58143 Add scaffolding to update .po files and install .mo files. 2011-05-19 15:25:29 -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
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
c234363562 Add missing includes of libintl.h. 2011-05-16 16:50:09 -04:00
Todd C. Miller
15bc74bd67 Include libint.h where needed. 2011-05-16 16:37:11 -04:00
Todd C. Miller
c865a462cc Prepare sudo front end messages for translation. 2011-05-06 17:47:51 -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
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
44c763c728 If there is an existing sudoers file, only install if it passes a
syntax check.
2011-03-29 15:20:32 -04:00
Todd C. Miller
53d183c380 Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination.  HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
2011-03-29 09:10:40 -04:00
Todd C. Miller
e07ca146d1 Print sudo version early, in case policy plugin init fails. 2011-03-25 09:58:08 -04:00
Todd C. Miller
71fa43ec47 Better error message about invalid -C argument 2011-03-22 10:19:32 -04:00