]> granicus.if.org Git - sudo/log
sudo
13 years agoFix building on RHEL 3
Todd C. Miller [Tue, 23 Aug 2011 19:25:56 +0000 (15:25 -0400)]
Fix building on RHEL 3

--HG--
branch : 1.7

13 years agobash 2.x doesd not support the -l flag and exits with an error if SUDO_1_7_7
Todd C. Miller [Sun, 14 Aug 2011 20:00:01 +0000 (16:00 -0400)]
bash 2.x doesd not support the -l flag and exits with an error if
it is specified so use --login instead. This causes an error with
bash 1.x (which uses -login instead) but this version is hopefully
less used than 2.x.

--HG--
branch : 1.7

13 years agoDetect HP-UX bundled compiler on ia64 systems.
Todd C. Miller [Sun, 14 Aug 2011 19:58:49 +0000 (15:58 -0400)]
Detect HP-UX bundled compiler on ia64 systems.

--HG--
branch : 1.7

13 years agoFix cut & pasto in K&R lbuf_append function declaration
Todd C. Miller [Sun, 14 Aug 2011 19:58:21 +0000 (15:58 -0400)]
Fix cut & pasto in K&R lbuf_append function declaration

--HG--
branch : 1.7

13 years agosync
Todd C. Miller [Sun, 14 Aug 2011 15:45:46 +0000 (11:45 -0400)]
sync

--HG--
branch : 1.7

13 years agoImproved background mode support. When not allocating a pty, the
Todd C. Miller [Sun, 14 Aug 2011 15:45:09 +0000 (11:45 -0400)]
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.

--HG--
branch : 1.7

13 years agoAdd primitive format string support to the lbuf code.
Todd C. Miller [Sun, 14 Aug 2011 14:44:31 +0000 (10:44 -0400)]
Add primitive format string support to the lbuf code.

--HG--
branch : 1.7

13 years agoGo back to escaping the command args for "sudo -i" and "sudo -s"
Todd C. Miller [Sun, 14 Aug 2011 14:19:48 +0000 (10:19 -0400)]
Go back to escaping the command args for "sudo -i" and "sudo -s"
in NewArgv before checking sudoers but unescape non-spaces when
building user_args to make sudoers matching easier.

--HG--
branch : 1.7

13 years agoPrepare for sudo 1.7.7
Todd C. Miller [Sat, 13 Aug 2011 22:35:50 +0000 (18:35 -0400)]
Prepare for sudo 1.7.7

--HG--
branch : 1.7

13 years agoOnly check gid of sudoers file if it is group-readable or writable.
Todd C. Miller [Sat, 13 Aug 2011 22:35:17 +0000 (18:35 -0400)]
Only check gid of sudoers file if it is group-readable or writable.

--HG--
branch : 1.7

13 years agoconfigure args on the command line should override builtin defaults.
Todd C. Miller [Sat, 13 Aug 2011 22:26:44 +0000 (18:26 -0400)]
configure args on the command line should override builtin defaults.
Add -g to CFLAG for PIE builds.

--HG--
branch : 1.7

13 years agoAdd checks for nroff -c and -Tascii flags
Todd C. Miller [Sat, 13 Aug 2011 22:12:28 +0000 (18:12 -0400)]
Add checks for nroff -c and -Tascii flags

--HG--
branch : 1.7

13 years agoWhen building with gcc on HP-UX, use -march=1.1 to produce portable
Todd C. Miller [Sat, 13 Aug 2011 22:09:13 +0000 (18:09 -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.7

13 years agoFix K&R compilation
Todd C. Miller [Sat, 13 Aug 2011 21:38:34 +0000 (17:38 -0400)]
Fix K&R compilation

--HG--
branch : 1.7

13 years agofix K&R compilation
Todd C. Miller [Sat, 13 Aug 2011 21:37:58 +0000 (17:37 -0400)]
fix K&R compilation

--HG--
branch : 1.7

13 years agoIf the user specifies a runas group via sudo's -g option that matches
Todd C. Miller [Sat, 13 Aug 2011 18:43:43 +0000 (14:43 -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.7

13 years agoWhen checking aliases, also check the contents of the alias in case
Todd C. Miller [Sat, 13 Aug 2011 18:42:57 +0000 (14:42 -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.7

13 years agoSet errno to ELOOP in alias_find() if there is a cycle. Set errno
Todd C. Miller [Sat, 13 Aug 2011 18:40:17 +0000 (14:40 -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.7

13 years agoIncrement alias_seqno before calls to alias_remove_recursive() to
Todd C. Miller [Sat, 13 Aug 2011 18:39:32 +0000 (14:39 -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.7

13 years agoTivoli Directory Server requires that seconds be present in a
Todd C. Miller [Sat, 13 Aug 2011 17:50:24 +0000 (13:50 -0400)]
Tivoli Directory Server requires that seconds be present in a
timestamp, even though RFC 4517 states that they are optional.

--HG--
branch : 1.7

13 years agoSet def_preserve_groups before searching for the command when the
Todd C. Miller [Sat, 13 Aug 2011 17:48:45 +0000 (13:48 -0400)]
Set def_preserve_groups before searching for the command when the
-P flag is specified.

--HG--
branch : 1.7

13 years agoThe group named by exempt_group should not have a % prefix.
Todd C. Miller [Sat, 13 Aug 2011 17:41:06 +0000 (13:41 -0400)]
The group named by exempt_group should not have a % prefix.

--HG--
branch : 1.7

13 years agoDo not declare yyparse() static as the actual function generated
Todd C. Miller [Sat, 13 Aug 2011 17:39:56 +0000 (13:39 -0400)]
Do not declare yyparse() static as the actual function generated
by yacc is extern.

--HG--
branch : 1.7

13 years agoDisable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
Todd C. Miller [Sat, 13 Aug 2011 17:36:37 +0000 (13:36 -0400)]
Disable noexec for AIX < 5. LDR_PRELOAD is only available in AIX
5.3 and above.

--HG--
branch : 1.7

13 years agoFor SuSE, only use /usr/lib64 as libexec if generating 64-bit
Todd C. Miller [Sat, 13 Aug 2011 17:34:54 +0000 (13:34 -0400)]
For SuSE, only use /usr/lib64 as libexec if generating 64-bit
binaries.

--HG--
branch : 1.7

13 years agoSplit out log file word wrap code into its own file. Fixes an
Todd C. Miller [Sat, 13 Aug 2011 17:33:52 +0000 (13:33 -0400)]
Split out log file word wrap code into its own file.  Fixes an
off-by one in the word wrap when the log line length matches
loglinelen.

--HG--
branch : 1.7

13 years agoAdd a NULL check in audit_success() and audit_failure() just to be
Todd C. Miller [Sat, 13 Aug 2011 16:35:11 +0000 (12:35 -0400)]
Add a NULL check in audit_success() and audit_failure() just to be
on the safe side.

--HG--
branch : 1.7

13 years agoFix some potential problems found by the clang static analyzer, none
Todd C. Miller [Sat, 13 Aug 2011 16:29:52 +0000 (12:29 -0400)]
Fix some potential problems found by the clang static analyzer, none
serious.

--HG--
branch : 1.7

13 years agoFor AIX, keep calling authenticate() until reenter reaches 0.
Todd C. Miller [Sat, 13 Aug 2011 16:11:10 +0000 (12:11 -0400)]
For AIX, keep calling authenticate() until reenter reaches 0.

--HG--
branch : 1.7

13 years agoUpdate to autoconf 2.68 and libtool 2.4
Todd C. Miller [Sat, 13 Aug 2011 15:58:29 +0000 (11:58 -0400)]
Update to autoconf 2.68 and libtool 2.4

--HG--
branch : 1.7

13 years agoAdd check for NetBSD-style 4-argument skeychallenge() as Gentoo also
Todd C. Miller [Sat, 13 Aug 2011 15:55:59 +0000 (11:55 -0400)]
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this.  Adapted from a patch from Diego Elio Petteno

--HG--
branch : 1.7

13 years agoFix typo; OPT should be OTP
Todd C. Miller [Thu, 11 Aug 2011 17:26:00 +0000 (13:26 -0400)]
Fix typo; OPT should be OTP

--HG--
branch : 1.7

13 years agoAdd dedicated callback function for runas_default sudoers setting
Todd C. Miller [Wed, 10 Aug 2011 13:02:58 +0000 (09:02 -0400)]
Add dedicated callback function for runas_default sudoers setting
that only sets runas_pw if no runas user or group was specified by
the user.

--HG--
branch : 1.7

13 years agoGo back to using a callback for runas_default to keep runas_pw in
Todd C. Miller [Tue, 9 Aug 2011 18:56:05 +0000 (14:56 -0400)]
Go back to using a callback for runas_default to keep runas_pw in
sync.  This is needed to make per-entry runas_default settings work
with LDAP-based sudoers.  Instead of declaring it a callback in
def_data.in, sudo pokes sudo_defs_table[] which is a bit naughty,
but avoids requiring stub functions in visudo and testsudoers.

--HG--
branch : 1.7

13 years agoOnly run configure with --with-pam-login for RHEL 5 and above.
Todd C. Miller [Wed, 13 Jul 2011 19:51:21 +0000 (15:51 -0400)]
Only run configure with --with-pam-login for RHEL 5 and above.

--HG--
branch : 1.7

13 years agoFix typo in summary
Todd C. Miller [Wed, 13 Jul 2011 15:41:49 +0000 (11:41 -0400)]
Fix typo in summary

--HG--
branch : 1.7

13 years agoPreserve SHELL variable for "sudo -s". Otherwise we can end up
Todd C. Miller [Mon, 13 Jun 2011 11:21:18 +0000 (07:21 -0400)]
Preserve SHELL variable for "sudo -s".  Otherwise we can end up
with a situation where the SHELL variable and the actual shell being
run do not match.

--HG--
branch : 1.7

13 years agoOnly enable Solaris project support when setproject() is present in
Todd C. Miller [Fri, 10 Jun 2011 19:30:00 +0000 (15:30 -0400)]
Only enable Solaris project support when setproject() is present in
libproject.

--HG--
branch : 1.7

13 years agoExplicitly set mode and owner of /etc/sudoers instead of relying
Todd C. Miller [Fri, 10 Jun 2011 19:27:48 +0000 (15:27 -0400)]
Explicitly set mode and owner of /etc/sudoers instead of relying
on "cp -p" to work in the postinstall script.  On AIX 6.1 at least
the postinstall script runs before the final file permissions are set.

--HG--
branch : 1.7

13 years agoSplit ALL, ROLE and TYPE into their own actions. Since you can
Todd C. Miller [Fri, 29 Apr 2011 20:07:37 +0000 (16:07 -0400)]
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.

--HG--
branch : 1.7

13 years agoFix regexp for matching a CIDR-style IPv4 netmask. From Marc Espie.
Todd C. Miller [Fri, 29 Apr 2011 15:25:25 +0000 (11:25 -0400)]
Fix regexp for matching a CIDR-style IPv4 netmask.  From Marc Espie.

--HG--
branch : 1.7

13 years agoRemove obsolete warning about runas_default and ordering.
Todd C. Miller [Fri, 29 Apr 2011 15:24:55 +0000 (11:24 -0400)]
Remove obsolete warning about runas_default and ordering.

--HG--
branch : 1.7

13 years agoNeed to do checks for krb5_verify_user, krb5_init_secure_context
Todd C. Miller [Mon, 18 Apr 2011 13:30:48 +0000 (09:30 -0400)]
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.

--HG--
branch : 1.7

13 years agosudo 1.7.6p1 updates
Todd C. Miller [Mon, 18 Apr 2011 13:24:49 +0000 (09:24 -0400)]
sudo 1.7.6p1 updates

--HG--
branch : 1.7

13 years agoupdate copyright year
Todd C. Miller [Thu, 14 Apr 2011 20:42:28 +0000 (16:42 -0400)]
update copyright year

--HG--
branch : 1.7

13 years agoTreat a missing includedir like an empty one and do not return an error.
Todd C. Miller [Thu, 14 Apr 2011 19:09:57 +0000 (15:09 -0400)]
Treat a missing includedir like an empty one and do not return an error.

--HG--
branch : 1.7

13 years agoFix ARCH setting in cross-compile Solaris packages.
Todd C. Miller [Tue, 12 Apr 2011 15:54:03 +0000 (11:54 -0400)]
Fix ARCH setting in cross-compile Solaris packages.

--HG--
branch : 1.7

13 years agoFix aix version setting.
Todd C. Miller [Tue, 12 Apr 2011 15:53:38 +0000 (11:53 -0400)]
Fix aix version setting.

--HG--
branch : 1.7

13 years agoRemove extraneous parens in LDAP filter when sudoers_search_filter
Todd C. Miller [Tue, 12 Apr 2011 15:49:39 +0000 (11:49 -0400)]
Remove extraneous parens in LDAP filter when sudoers_search_filter
is enabled that causes a search error.  From Matthew Thomas.

--HG--
branch : 1.7

13 years agoAdded tag SUDO_1_7_6 for changeset fafbb7b0aea2
Todd C. Miller [Sat, 9 Apr 2011 16:55:52 +0000 (12:55 -0400)]
Added tag SUDO_1_7_6 for changeset fafbb7b0aea2

--HG--
branch : 1.7

13 years agoregen for 1.7.6 SUDO_1_7_6
Todd C. Miller [Sat, 9 Apr 2011 15:28:47 +0000 (11:28 -0400)]
regen for 1.7.6

--HG--
branch : 1.7

13 years agoregen man pages for 1.7.6
Todd C. Miller [Sat, 9 Apr 2011 14:48:33 +0000 (10:48 -0400)]
regen man pages for 1.7.6

--HG--
branch : 1.7

13 years agoFix warnings when -without-skey, --without-opie, --without-kerb4,
Todd C. Miller [Wed, 6 Apr 2011 13:46:02 +0000 (09:46 -0400)]
Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.

--HG--
branch : 1.7

13 years agoMention %#gid support in User_List and Runas_List
Todd C. Miller [Tue, 5 Apr 2011 22:15:10 +0000 (18:15 -0400)]
Mention %#gid support in User_List and Runas_List

--HG--
branch : 1.7

13 years agoMerge SETENV and NOSETENV description from 1.8
Todd C. Miller [Tue, 5 Apr 2011 13:18:13 +0000 (09:18 -0400)]
Merge SETENV and NOSETENV description from 1.8

--HG--
branch : 1.7

13 years agoIn dump-only mode, use "root" as the default username instead of
Todd C. Miller [Fri, 1 Apr 2011 17:56:20 +0000 (13:56 -0400)]
In dump-only mode, use "root" as the default username instead of
"nobody" as the latter may not be available on all systems.

--HG--
branch : 1.7

13 years agoFix setting of user_args
Todd C. Miller [Thu, 31 Mar 2011 17:59:44 +0000 (13:59 -0400)]
Fix setting of user_args

--HG--
branch : 1.7

13 years agoAdd '!' token to lex tracing
Todd C. Miller [Thu, 31 Mar 2011 17:59:26 +0000 (13:59 -0400)]
Add '!' token to lex tracing

--HG--
branch : 1.7

13 years agoAvoid using pre or post increment in a parameter to a ctype(3)
Todd C. Miller [Thu, 31 Mar 2011 16:49:13 +0000 (12:49 -0400)]
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen
more than once.

--HG--
branch : 1.7

13 years agoStrip off the beta or release candidate version when building AIX
Todd C. Miller [Wed, 30 Mar 2011 16:28:10 +0000 (12:28 -0400)]
Strip off the beta or release candidate version when building AIX
packages.

--HG--
branch : 1.7

13 years agogetuserattr(user, ...) will fall back to the "default" entry
Todd C. Miller [Wed, 30 Mar 2011 12:54:56 +0000 (08:54 -0400)]
getuserattr(user, ...) will fall back to the "default" entry
automatically, there's no need to check "default" manually.

--HG--
branch : 1.7

13 years agoDocument parser changes.
Todd C. Miller [Wed, 30 Mar 2011 00:32:12 +0000 (20:32 -0400)]
Document parser changes.

--HG--
branch : 1.7

13 years agoAdd runasgroup support to testsudoers
Todd C. Miller [Tue, 29 Mar 2011 21:53:25 +0000 (17:53 -0400)]
Add runasgroup support to testsudoers

--HG--
branch : 1.7

13 years agoMore useful exit codes:
Todd C. Miller [Tue, 29 Mar 2011 21:53:02 +0000 (17:53 -0400)]
More useful exit codes:
 * 0 - parsed OK and command matched.
 * 1 - parse error
 * 2 - command not matched
 * 3 - command denied

--HG--
branch : 1.7

13 years agoIf there is an existing sudoers file, only install if it passes a
Todd C. Miller [Tue, 29 Mar 2011 19:26:25 +0000 (15:26 -0400)]
If there is an existing sudoers file, only install if it passes a
syntax check.

--HG--
branch : 1.7

13 years agoDocument %#gid, and %:#nonunix_gid syntax.
Todd C. Miller [Tue, 29 Mar 2011 16:57:12 +0000 (12:57 -0400)]
Document %#gid, and %:#nonunix_gid syntax.

--HG--
branch : 1.7

13 years agoAdd support to user_in_group() for treating group names that begin with
Todd C. Miller [Tue, 29 Mar 2011 16:37:56 +0000 (12:37 -0400)]
Add support to user_in_group() for treating group names that begin with
a '#' as gids.

--HG--
branch : 1.7

13 years agoQuote first argument to AC_DEFUN(); from Elan Ruusamae
Todd C. Miller [Mon, 28 Mar 2011 13:36:17 +0000 (09:36 -0400)]
Quote first argument to AC_DEFUN(); from Elan Ruusamae

--HG--
branch : 1.7

13 years agoUse bitwise AND instead of modulus to check for length being odd.
Todd C. Miller [Sun, 27 Mar 2011 21:16:15 +0000 (17:16 -0400)]
Use bitwise AND instead of modulus to check for length being odd.
A newline in the middle of a string is an error unless a line
continuation character is used.

--HG--
branch : 1.7

13 years agoAdd missing include of config.h
Todd C. Miller [Sun, 27 Mar 2011 15:07:04 +0000 (11:07 -0400)]
Add missing include of config.h

--HG--
branch : 1.7

13 years agoMove lexer globals initialization into init_lexer.
Todd C. Miller [Sun, 27 Mar 2011 15:05:22 +0000 (11:05 -0400)]
Move lexer globals initialization into init_lexer.

--HG--
branch : 1.7

13 years agoFix a potential crash when a non-regular file is present in an
Todd C. Miller [Sun, 27 Mar 2011 15:02:18 +0000 (11:02 -0400)]
Fix a potential crash when a non-regular file is present in an
includedir.  Fixes bz #452

--HG--
branch : 1.7

13 years agoOn some Linux systems, "uname -p" contains detailed processor info
Todd C. Miller [Sun, 27 Mar 2011 15:01:33 +0000 (11:01 -0400)]
On some Linux systems, "uname -p" contains detailed processor info
so check "uname -m" first and then "uname -p" if needed.
Recognize PLD Linux.

--HG--
branch : 1.7

13 years agoMake an empty group or netgroup a syntax error.
Todd C. Miller [Sun, 27 Mar 2011 15:01:03 +0000 (11:01 -0400)]
Make an empty group or netgroup a syntax error.

--HG--
branch : 1.7

13 years agoAllow a group ID in the User_Spec.
Todd C. Miller [Sun, 27 Mar 2011 15:00:38 +0000 (11:00 -0400)]
Allow a group ID in the User_Spec.

--HG--
branch : 1.7

13 years agoReturn an error for the empty string when a word is expected.
Todd C. Miller [Sun, 27 Mar 2011 15:00:17 +0000 (11:00 -0400)]
Return an error for the empty string when a word is expected.
Allow an ID for per-user or per-runas Defaults.

--HG--
branch : 1.7

13 years agoFix printing "User_Alias FOO = ALL"
Todd C. Miller [Wed, 23 Mar 2011 20:04:17 +0000 (16:04 -0400)]
Fix printing "User_Alias FOO = ALL"

--HG--
branch : 1.7

13 years agoBetter error message about invalid -C argument
Todd C. Miller [Tue, 22 Mar 2011 14:19:37 +0000 (10:19 -0400)]
Better error message about invalid -C argument

--HG--
branch : 1.7

13 years agofix typo
Todd C. Miller [Tue, 22 Mar 2011 14:08:30 +0000 (10:08 -0400)]
fix typo

--HG--
branch : 1.7

13 years agoFix placement of equal size ('=') in user specification summary.
Todd C. Miller [Tue, 22 Mar 2011 13:40:43 +0000 (09:40 -0400)]
Fix placement of equal size ('=') in user specification summary.

--HG--
branch : 1.7

13 years agoIf we match a rule anchored to the beginning of a line after parsing
Todd C. Miller [Mon, 21 Mar 2011 21:49:16 +0000 (17:49 -0400)]
If we match a rule anchored to the beginning of a line after parsing
a line continuation character, return an ERROR token.  It would be
nicer to use REJECT instead but that substantially slows down the
lexer.

--HG--
branch : 1.7

13 years agoAllow whitespace after the modifier in a Defaults entry.
Todd C. Miller [Mon, 21 Mar 2011 19:28:07 +0000 (15:28 -0400)]
Allow whitespace after the modifier in a Defaults entry.
E.g. "Defaults: username set_home"

--HG--
branch : 1.7

13 years agoDon't set CC when cross-compiling.
Todd C. Miller [Fri, 18 Mar 2011 21:54:47 +0000 (17:54 -0400)]
Don't set CC when cross-compiling.
Use the Sun Studio C compiler on Solaris if possible.

--HG--
branch : 1.7

13 years agoCredit Matthew Thomas for the sudoers_search_filter changes.
Todd C. Miller [Fri, 18 Mar 2011 17:06:14 +0000 (13:06 -0400)]
Credit Matthew Thomas for the sudoers_search_filter changes.

--HG--
branch : 1.7

13 years agoUpdate for sudo 1.7.6 beta
Todd C. Miller [Fri, 18 Mar 2011 14:24:54 +0000 (10:24 -0400)]
Update for sudo 1.7.6 beta

--HG--
branch : 1.7

13 years agoSave the controlling tty process group before suspending in pty
Todd C. Miller [Fri, 18 Mar 2011 14:07:51 +0000 (10:07 -0400)]
Save the controlling tty process group before suspending in pty
mode.  Previously, we assumed that the child pgrp == child pid
(which is usually, but not always, the case).

--HG--
branch : 1.7

13 years agoAdd support for sudoers_search_filter setting in ldap.conf. This
Todd C. Miller [Fri, 18 Mar 2011 13:39:03 +0000 (09:39 -0400)]
Add support for sudoers_search_filter setting in ldap.conf.  This
can be used to restrict the set of records returned by the LDAP
query.

--HG--
branch : 1.7

13 years agoRemove the hack to disable -g in CFLAGS unless --with-devel
Todd C. Miller [Thu, 17 Mar 2011 22:44:22 +0000 (18:44 -0400)]
Remove the hack to disable -g in CFLAGS unless --with-devel

--HG--
branch : 1.7

13 years agoThe '@' character does not normally need to be quoted.
Todd C. Miller [Thu, 17 Mar 2011 20:44:41 +0000 (16:44 -0400)]
The '@' character does not normally need to be quoted.

--HG--
branch : 1.7

13 years agoWe normaly transition from GOTDEFS to STARTDEFS on whitespace, but
Todd C. Miller [Thu, 17 Mar 2011 20:42:28 +0000 (16:42 -0400)]
We normaly transition from GOTDEFS to STARTDEFS on whitespace, but
if that whitespace is followed by a comma, we want to treat it as
part of a list and not transition.

--HG--
branch : 1.7

13 years agotoke_util.c lives in $(srcdir) not $(devdir)
Todd C. Miller [Thu, 17 Mar 2011 20:41:11 +0000 (16:41 -0400)]
toke_util.c lives in $(srcdir) not $(devdir)

--HG--
branch : 1.7

13 years agoFix parsing of double-quoted names in Defaults and Aliases which was
Todd C. Miller [Thu, 17 Mar 2011 19:08:32 +0000 (15:08 -0400)]
Fix parsing of double-quoted names in Defaults and Aliases which was
broken in c2b486b12951.

--HG--
branch : 1.7

13 years agoDocument major changes for sudo 1.7.6
Todd C. Miller [Wed, 16 Mar 2011 20:10:44 +0000 (16:10 -0400)]
Document major changes for sudo 1.7.6

--HG--
branch : 1.7

13 years agoUpdate version to 1.7.6
Todd C. Miller [Wed, 16 Mar 2011 20:10:35 +0000 (16:10 -0400)]
Update version to 1.7.6

--HG--
branch : 1.7

13 years agoBe careful not to deref user_stat if it is NULL. This cannot currently
Todd C. Miller [Wed, 16 Mar 2011 19:59:50 +0000 (15:59 -0400)]
Be careful not to deref user_stat if it is NULL.  This cannot currently
happen in sudo but might in other programs using the parser.

--HG--
branch : 1.7

13 years agoconfigure will not add -O2 to CFLAGS if it is already defined to
Todd C. Miller [Wed, 16 Mar 2011 17:38:48 +0000 (13:38 -0400)]
configure will not add -O2 to CFLAGS if it is already defined to
add -O2 to the CFLAGS we pass in when PIE is being used.

--HG--
branch : 1.7

13 years agoWarn about the dangers of log_input and mention iolog_dir in the
Todd C. Miller [Wed, 16 Mar 2011 17:27:05 +0000 (13:27 -0400)]
Warn about the dangers of log_input and mention iolog_dir in the
log_input and log_output descriptions.

--HG--
branch : 1.7

13 years agoBack out 2b81d57de4a4 and sync with git version
Todd C. Miller [Wed, 16 Mar 2011 17:07:18 +0000 (13:07 -0400)]
Back out 2b81d57de4a4 and sync with git version

--HG--
branch : 1.7

13 years agoSave the controlling tty process group before suspending so we can
Todd C. Miller [Wed, 16 Mar 2011 16:02:42 +0000 (12:02 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume.  Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.

--HG--
branch : 1.7

13 years agoIn handle_signals(), restart the read() on EINTR to make sure we keep up
Todd C. Miller [Wed, 16 Mar 2011 15:55:54 +0000 (11:55 -0400)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe.  Don't return -1 on EAGAIN, it just means we have
emptied the pipe.

--HG--
branch : 1.7