]> granicus.if.org Git - sudo/log
sudo
14 years agoMention cycle detection warnings
Todd C. Miller [Wed, 25 May 2011 17:11:37 +0000 (13:11 -0400)]
Mention cycle detection warnings

--HG--
branch : 1.8

14 years agoWhen checking aliases, also check the contents of the alias in case there
Todd C. Miller [Wed, 25 May 2011 17:11:25 +0000 (13:11 -0400)]
When checking aliases, also check the contents of the alias in case there
are problems with an alias that is referenced inside another.
Replace the self reference check with real alias cycle detection.

--HG--
branch : 1.8

14 years agoSet errno to ELOOP in alias_find() if there is a cycle.
Todd C. Miller [Wed, 25 May 2011 17:11:10 +0000 (13:11 -0400)]
Set errno to ELOOP in alias_find() if there is a cycle.
Set errno to ENOENT in alias_find() and alias_remove() if the
entry could not be found.

--HG--
branch : 1.8

14 years agoIncrement alias_seqno before calls to alias_remove_recursive() to
Todd C. Miller [Wed, 25 May 2011 17:10:51 +0000 (13:10 -0400)]
Increment alias_seqno before calls to alias_remove_recursive() to
avoid false positives with the alias loop detection.  Fixes spurious
warnings about unused aliases when they are nested.

--HG--
branch : 1.8

14 years agoMention cycle detection warnings
Todd C. Miller [Wed, 25 May 2011 17:07:43 +0000 (13:07 -0400)]
Mention cycle detection warnings

14 years agoWhen checking aliases, also check the contents of the alias in case there
Todd C. Miller [Wed, 25 May 2011 17:04:13 +0000 (13:04 -0400)]
When checking aliases, also check the contents of the alias in case there
are problems with an alias that is referenced inside another.
Replace the self reference check with real alias cycle detection.

14 years agoSet errno to ELOOP in alias_find() if there is a cycle.
Todd C. Miller [Wed, 25 May 2011 16:54:15 +0000 (12:54 -0400)]
Set errno to ELOOP in alias_find() if there is a cycle.
Set errno to ENOENT in alias_find() and alias_remove() if the
entry could not be found.

14 years agoIncrement alias_seqno before calls to alias_remove_recursive() to
Todd C. Miller [Wed, 25 May 2011 15:31:11 +0000 (11:31 -0400)]
Increment alias_seqno before calls to alias_remove_recursive() to
avoid false positives with the alias loop detection.  Fixes spurious
warnings about unused aliases when they are nested.

14 years agoadd mkdep.pl
Todd C. Miller [Wed, 25 May 2011 14:24:37 +0000 (10:24 -0400)]
add mkdep.pl

--HG--
branch : 1.8

14 years agoAdd dependency on convenience libs to binaries
Todd C. Miller [Wed, 25 May 2011 14:24:24 +0000 (10:24 -0400)]
Add dependency on convenience libs to binaries

--HG--
branch : 1.8

14 years agomkdep.pl only works when run from the src dir
Todd C. Miller [Wed, 25 May 2011 14:24:09 +0000 (10:24 -0400)]
mkdep.pl only works when run from the src dir

--HG--
branch : 1.8

14 years agoAuto-generate Makefile dependencies with a perl script.
Todd C. Miller [Wed, 25 May 2011 14:23:49 +0000 (10:23 -0400)]
Auto-generate Makefile dependencies with a perl script.

--HG--
branch : 1.8

14 years agoadd mkdep.pl
Todd C. Miller [Wed, 25 May 2011 14:20:07 +0000 (10:20 -0400)]
add mkdep.pl

14 years agoAdd dependency on convenience libs to binaries
Todd C. Miller [Wed, 25 May 2011 14:19:29 +0000 (10:19 -0400)]
Add dependency on convenience libs to binaries

14 years agomkdep.pl only works when run from the src dir
Todd C. Miller [Wed, 25 May 2011 14:07:20 +0000 (10:07 -0400)]
mkdep.pl only works when run from the src dir

14 years agoAuto-generate Makefile dependencies with a perl script.
Todd C. Miller [Wed, 25 May 2011 13:02:25 +0000 (09:02 -0400)]
Auto-generate Makefile dependencies with a perl script.

14 years agoIf the user specifies a runas group via sudo's -g option that matches
Todd C. Miller [Mon, 23 May 2011 18:06:17 +0000 (14:06 -0400)]
If the user specifies a runas group via sudo's -g option that matches
the runas user's group in the passwd database and that group is not
denied in the Runas_Spec, allow it.  Thus, if user root's gid in
/etc/passwd is 0, then "sudo -u root -g root id" is allow even if
no groups are present in the Runas_Spec.

--HG--
branch : 1.8

14 years agoIf the user specifies a runas group via sudo's -g option that matches
Todd C. Miller [Mon, 23 May 2011 18:00:54 +0000 (14:00 -0400)]
If the user specifies a runas group via sudo's -g option that matches
the runas user's group in the passwd database and that group is not
denied in the Runas_Spec, allow it.  Thus, if user root's gid in
/etc/passwd is 0, then "sudo -u root -g root id" is allow even if
no groups are present in the Runas_Spec.

14 years agoMention what is new in 1.8.2 (for now)
Todd C. Miller [Sun, 22 May 2011 19:58:46 +0000 (15:58 -0400)]
Mention what is new in 1.8.2 (for now)

--HG--
branch : 1.8

14 years agoAdd dependencies on gettext.h
Todd C. Miller [Sun, 22 May 2011 17:38:42 +0000 (13:38 -0400)]
Add dependencies on gettext.h

--HG--
branch : 1.8

14 years agoAdd dependencies on gettext.h
Todd C. Miller [Sun, 22 May 2011 17:31:48 +0000 (13:31 -0400)]
Add dependencies on gettext.h

14 years agoFix install-nls target with HP-UX sh when gettext is not present.
Todd C. Miller [Sun, 22 May 2011 14:11:55 +0000 (10:11 -0400)]
Fix install-nls target with HP-UX sh when gettext is not present.

--HG--
branch : 1.8

14 years agoFix install-nls target with HP-UX sh when gettext is not present.
Todd C. Miller [Sun, 22 May 2011 14:10:43 +0000 (10:10 -0400)]
Fix install-nls target with HP-UX sh when gettext is not present.

14 years agoRegen for sudo 1.8.2
Todd C. Miller [Sun, 22 May 2011 12:36:17 +0000 (08:36 -0400)]
Regen for sudo 1.8.2

--HG--
branch : 1.8

14 years agoregenerate .pot files for lbuf changes
Todd C. Miller [Fri, 20 May 2011 19:36:42 +0000 (15:36 -0400)]
regenerate .pot files for lbuf changes

--HG--
branch : 1.8

14 years agoAdd missing "checking" message for gettext when using the cache.
Todd C. Miller [Fri, 20 May 2011 19:36:27 +0000 (15:36 -0400)]
Add missing "checking" message for gettext when using the cache.

--HG--
branch : 1.8

14 years agoAdd primitive format string support to the lbuf code to make
Todd C. Miller [Fri, 20 May 2011 19:36:11 +0000 (15:36 -0400)]
Add primitive format string support to the lbuf code to make
translations simpler.

--HG--
branch : 1.8

14 years agoregenerate .pot files for lbuf changes
Todd C. Miller [Fri, 20 May 2011 19:33:34 +0000 (15:33 -0400)]
regenerate .pot files for lbuf changes

14 years agoAdd missing "checking" message for gettext when using the cache.
Todd C. Miller [Fri, 20 May 2011 19:27:45 +0000 (15:27 -0400)]
Add missing "checking" message for gettext when using the cache.

14 years agoAdd primitive format string support to the lbuf code to make translations
Todd C. Miller [Fri, 20 May 2011 19:25:03 +0000 (15:25 -0400)]
Add primitive format string support to the lbuf code to make translations
simpler.

14 years agoBump version to 1.8.2
Todd C. Miller [Fri, 20 May 2011 17:39:37 +0000 (13:39 -0400)]
Bump version to 1.8.2

--HG--
branch : 1.8

14 years agoAdd message catalog template files for sudo and the sudoers module.
Todd C. Miller [Fri, 20 May 2011 17:38:46 +0000 (13:38 -0400)]
Add message catalog template files for sudo and the sudoers module.

--HG--
branch : 1.8

14 years agoAdd gettext.h convenience header. This is similar to but distinct from
Todd C. Miller [Fri, 20 May 2011 17:38:32 +0000 (13:38 -0400)]
Add gettext.h convenience header.  This is similar to but distinct from
the one included with the gettext package.

--HG--
branch : 1.8

14 years agoAdd checks for nroff -c and -Tascii flags
Todd C. Miller [Fri, 20 May 2011 17:38:19 +0000 (13:38 -0400)]
Add checks for nroff -c and -Tascii flags

--HG--
branch : 1.8

14 years agoAdd check for HP bundled C Compiler (which cannot create shared libs)
Todd C. Miller [Fri, 20 May 2011 17:38:09 +0000 (13:38 -0400)]
Add check for HP bundled C Compiler (which cannot create shared libs)

--HG--
branch : 1.8

14 years agoFix C format warnings.
Todd C. Miller [Fri, 20 May 2011 17:37:56 +0000 (13:37 -0400)]
Fix C format warnings.

--HG--
branch : 1.8

14 years agoAdd __printflike
Todd C. Miller [Fri, 20 May 2011 17:37:48 +0000 (13:37 -0400)]
Add __printflike

--HG--
branch : 1.8

14 years agoTranslate help / usage strings.
Todd C. Miller [Fri, 20 May 2011 17:37:36 +0000 (13:37 -0400)]
Translate help / usage strings.

--HG--
branch : 1.8

14 years agoSet --msgid-bugs-address to the bugzilla url
Todd C. Miller [Fri, 20 May 2011 17:37:23 +0000 (13:37 -0400)]
Set --msgid-bugs-address to the bugzilla url

--HG--
branch : 1.8

14 years agoAdd scaffolding to update .po files and install .mo files.
Todd C. Miller [Fri, 20 May 2011 17:37:09 +0000 (13:37 -0400)]
Add scaffolding to update .po files and install .mo files.

--HG--
branch : 1.8

14 years agoMinor warning/error cleanup
Todd C. Miller [Fri, 20 May 2011 17:34:56 +0000 (13:34 -0400)]
Minor warning/error cleanup

--HG--
branch : 1.8

14 years agoEmulate ngettext for the non-nls case
Todd C. Miller [Fri, 20 May 2011 17:34:38 +0000 (13:34 -0400)]
Emulate ngettext for the non-nls case

--HG--
branch : 1.8

14 years agoDo not mark untranslatable strings for translation
Todd C. Miller [Fri, 20 May 2011 17:34:26 +0000 (13:34 -0400)]
Do not mark untranslatable strings for translation

--HG--
branch : 1.8

14 years agoUse ROOT_UID not 0.
Todd C. Miller [Fri, 20 May 2011 17:34:13 +0000 (13:34 -0400)]
Use ROOT_UID not 0.

--HG--
branch : 1.8

14 years agoMinor warning/error message cleanup
Todd C. Miller [Fri, 20 May 2011 17:34:01 +0000 (13:34 -0400)]
Minor warning/error message cleanup

--HG--
branch : 1.8

14 years agocannot -> "unable to" in warning/error messages
Todd C. Miller [Fri, 20 May 2011 17:33:46 +0000 (13:33 -0400)]
cannot -> "unable to" in warning/error messages
can't -> "unable to" in warning/error messages

--HG--
branch : 1.8

14 years agoFreeBSD needs the main sudo executable to link with -lpam when
Todd C. Miller [Fri, 20 May 2011 17:33:24 +0000 (13:33 -0400)]
FreeBSD needs the main sudo executable to link with -lpam when
loading dynaic pam modules for some reason.

--HG--
branch : 1.8

14 years agoWe don't want to translate debugging messages.
Todd C. Miller [Fri, 20 May 2011 17:33:13 +0000 (13:33 -0400)]
We don't want to translate debugging messages.

--HG--
branch : 1.8

14 years agoAdd calls to bindtextdomain() and textdomain()
Todd C. Miller [Fri, 20 May 2011 17:32:56 +0000 (13:32 -0400)]
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.

--HG--
branch : 1.8

14 years agoFix caching of libc gettext check.
Todd C. Miller [Fri, 20 May 2011 17:32:33 +0000 (13:32 -0400)]
Fix caching of libc gettext check.

--HG--
branch : 1.8

14 years agoMark defaults descriptions for translation
Todd C. Miller [Fri, 20 May 2011 17:32:23 +0000 (13:32 -0400)]
Mark defaults descriptions for translation

--HG--
branch : 1.8

14 years agoUpdate for sudo 1.8.1p2
Todd C. Miller [Fri, 20 May 2011 17:32:07 +0000 (13:32 -0400)]
Update for sudo 1.8.1p2

--HG--
branch : 1.8

14 years agoQuiet compiler warning when SELinux is enabled.
Todd C. Miller [Fri, 20 May 2011 17:31:12 +0000 (13:31 -0400)]
Quiet compiler warning when SELinux is enabled.

--HG--
branch : 1.8

14 years agodd missing includes of libintl.h.
Todd C. Miller [Fri, 20 May 2011 17:30:58 +0000 (13:30 -0400)]
dd missing includes of libintl.h.

--HG--
branch : 1.8

14 years agoFix gettext marker.
Todd C. Miller [Fri, 20 May 2011 17:30:44 +0000 (13:30 -0400)]
Fix gettext marker.

--HG--
branch : 1.8

14 years agoInclude libint.h where needed.
Todd C. Miller [Fri, 20 May 2011 17:30:27 +0000 (13:30 -0400)]
Include libint.h where needed.

--HG--
branch : 1.8

14 years agoPrepare sudoers module messages for translation.
Todd C. Miller [Fri, 20 May 2011 17:30:11 +0000 (13:30 -0400)]
Prepare sudoers module messages for translation.

--HG--
branch : 1.8

14 years agoOnly check gid of sudoers file if it is group-readable.
Todd C. Miller [Fri, 20 May 2011 17:28:00 +0000 (13:28 -0400)]
Only check gid of sudoers file if it is group-readable.

--HG--
branch : 1.8

14 years agoFor AIX, keep calling authenticate() until reenter reaches 0.
Todd C. Miller [Fri, 20 May 2011 17:27:47 +0000 (13:27 -0400)]
For AIX, keep calling authenticate() until reenter reaches 0.

--HG--
branch : 1.8

14 years agoCache the status of the initial gettext() check.
Todd C. Miller [Fri, 20 May 2011 17:27:30 +0000 (13:27 -0400)]
Cache the status of the initial gettext() check.

--HG--
branch : 1.8

14 years agoAdd --disable-nls flag and improve checks for gettext.
Todd C. Miller [Fri, 20 May 2011 17:27:16 +0000 (13:27 -0400)]
Add --disable-nls flag and improve checks for gettext.

--HG--
branch : 1.8

14 years agoWhen building with gcc on HP-UX, use -march=1.1 to produce portable
Todd C. Miller [Fri, 20 May 2011 17:27:04 +0000 (13:27 -0400)]
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.

--HG--
branch : 1.8

14 years agoPrepare sudo front end messages for translation.
Todd C. Miller [Fri, 20 May 2011 17:26:48 +0000 (13:26 -0400)]
Prepare sudo front end messages for translation.

--HG--
branch : 1.8

14 years agoAdd initial scaffolding to support localization via gettext()
Todd C. Miller [Fri, 20 May 2011 17:26:01 +0000 (13:26 -0400)]
Add initial scaffolding to support localization via gettext()

--HG--
branch : 1.8

14 years agoAdd message catalog template files for sudo and the sudoers module.
Todd C. Miller [Fri, 20 May 2011 17:20:14 +0000 (13:20 -0400)]
Add message catalog template files for sudo and the sudoers module.

14 years agoAdd gettext.h convenience header. This is similar to but distinct from
Todd C. Miller [Fri, 20 May 2011 15:48:17 +0000 (11:48 -0400)]
Add gettext.h convenience header.  This is similar to but distinct from
the one included with the gettext package.

14 years agoAdd checks for nroff -c and -Tascii flags
Todd C. Miller [Thu, 19 May 2011 22:00:31 +0000 (18:00 -0400)]
Add checks for nroff -c and -Tascii flags

14 years agoAdd check for HP bundled C Compiler (which cannot create shared libs)
Todd C. Miller [Thu, 19 May 2011 21:34:38 +0000 (17:34 -0400)]
Add check for HP bundled C Compiler (which cannot create shared libs)

14 years agoFix C format warnings.
Todd C. Miller [Thu, 19 May 2011 20:21:59 +0000 (16:21 -0400)]
Fix C format warnings.

14 years agoAdd __printflike
Todd C. Miller [Thu, 19 May 2011 20:21:41 +0000 (16:21 -0400)]
Add __printflike

14 years agoTranslate help / usage strings.
Todd C. Miller [Thu, 19 May 2011 20:07:14 +0000 (16:07 -0400)]
Translate help / usage strings.

14 years agoSet --msgid-bugs-address to the bugzilla url
Todd C. Miller [Thu, 19 May 2011 20:06:53 +0000 (16:06 -0400)]
Set --msgid-bugs-address to the bugzilla url

14 years agoAdd scaffolding to update .po files and install .mo files.
Todd C. Miller [Thu, 19 May 2011 19:25:29 +0000 (15:25 -0400)]
Add scaffolding to update .po files and install .mo files.

14 years agoupdate copyright year
Todd C. Miller [Thu, 19 May 2011 17:21:08 +0000 (13:21 -0400)]
update copyright year

14 years agoupdate copyright year
Todd C. Miller [Thu, 19 May 2011 17:20:49 +0000 (13:20 -0400)]
update copyright year

--HG--
branch : 1.8

14 years agoNo need to include version number at the top of these files.
Todd C. Miller [Thu, 19 May 2011 17:17:31 +0000 (13:17 -0400)]
No need to include version number at the top of these files.

14 years agoNo need to include version number at the top of these files.
Todd C. Miller [Thu, 19 May 2011 17:16:37 +0000 (13:16 -0400)]
No need to include version number at the top of these files.

--HG--
branch : 1.8

14 years agoThis is sudo 1.8.1 not 1.8.0
Todd C. Miller [Thu, 19 May 2011 17:09:49 +0000 (13:09 -0400)]
This is sudo 1.8.1 not 1.8.0

--HG--
branch : 1.8

14 years agoMinor warning/error cleanup
Todd C. Miller [Wed, 18 May 2011 17:44:36 +0000 (13:44 -0400)]
Minor warning/error cleanup

14 years agoEmulate ngettext for the non-nls case
Todd C. Miller [Wed, 18 May 2011 17:44:07 +0000 (13:44 -0400)]
Emulate ngettext for the non-nls case

14 years agoDo not mark untranslatable strings for translation
Todd C. Miller [Wed, 18 May 2011 17:16:32 +0000 (13:16 -0400)]
Do not mark untranslatable strings for translation

14 years agoUse ROOT_UID not 0.
Todd C. Miller [Wed, 18 May 2011 17:07:35 +0000 (13:07 -0400)]
Use ROOT_UID not 0.

14 years agoMinor warning/error message cleanup
Todd C. Miller [Wed, 18 May 2011 17:04:24 +0000 (13:04 -0400)]
Minor warning/error message cleanup

14 years agocannot -> "unable to" in warning/error messages
Todd C. Miller [Wed, 18 May 2011 16:41:06 +0000 (12:41 -0400)]
cannot -> "unable to" in warning/error messages

14 years agocan't -> "unable to" in warning/error messages
Todd C. Miller [Wed, 18 May 2011 16:36:26 +0000 (12:36 -0400)]
can't -> "unable to" in warning/error messages

14 years agoFreeBSD needs the main sudo executable to link with -lpam when
Todd C. Miller [Wed, 18 May 2011 15:18:44 +0000 (11:18 -0400)]
FreeBSD needs the main sudo executable to link with -lpam when
loading dynaic pam modules for some reason.

14 years agoWe don't want to translate debugging messages.
Todd C. Miller [Tue, 17 May 2011 22:37:18 +0000 (18:37 -0400)]
We don't want to translate debugging messages.

14 years agoAdd calls to bindtextdomain() and textdomain()
Todd C. Miller [Tue, 17 May 2011 20:38:40 +0000 (16:38 -0400)]
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.

14 years agoFix caching of libc gettext check.
Todd C. Miller [Tue, 17 May 2011 19:55:23 +0000 (15:55 -0400)]
Fix caching of libc gettext check.

14 years agoMark defaults descriptions for translation
Todd C. Miller [Tue, 17 May 2011 16:52:20 +0000 (12:52 -0400)]
Mark defaults descriptions for translation

14 years agoUpdate for sudo 1.8.1p2
Todd C. Miller [Tue, 17 May 2011 15:59:40 +0000 (11:59 -0400)]
Update for sudo 1.8.1p2

14 years agoQuiet compiler warning when SELinux is enabled.
Todd C. Miller [Mon, 16 May 2011 20:52:34 +0000 (16:52 -0400)]
Quiet compiler warning when SELinux is enabled.

14 years agoAdd missing includes of libintl.h.
Todd C. Miller [Mon, 16 May 2011 20:50:09 +0000 (16:50 -0400)]
Add missing includes of libintl.h.

14 years agoFix gettext marker.
Todd C. Miller [Mon, 16 May 2011 20:44:11 +0000 (16:44 -0400)]
Fix gettext marker.

14 years agoInclude libint.h where needed.
Todd C. Miller [Mon, 16 May 2011 20:37:11 +0000 (16:37 -0400)]
Include libint.h where needed.

14 years agoPrepare sudoers module messages for translation.
Todd C. Miller [Mon, 16 May 2011 20:32:05 +0000 (16:32 -0400)]
Prepare sudoers module messages for translation.

14 years agoOnly check gid of sudoers file if it is group-readable.
Todd C. Miller [Mon, 16 May 2011 16:19:07 +0000 (12:19 -0400)]
Only check gid of sudoers file if it is group-readable.

14 years agoFor AIX, keep calling authenticate() until reenter reaches 0.
Todd C. Miller [Mon, 16 May 2011 16:17:49 +0000 (12:17 -0400)]
For AIX, keep calling authenticate() until reenter reaches 0.

14 years agoCache the status of the initial gettext() check.
Todd C. Miller [Mon, 9 May 2011 15:04:19 +0000 (11:04 -0400)]
Cache the status of the initial gettext() check.

14 years agoAdd --disable-nls flag and improve checks for gettext.
Todd C. Miller [Mon, 9 May 2011 14:58:52 +0000 (10:58 -0400)]
Add --disable-nls flag and improve checks for gettext.