]> eyrie.org Git - kerberos/kstart.git/log
kerberos/kstart.git
12 years agoUpdate documentation for recent changes
Russ Allbery [Thu, 29 Dec 2011 21:36:57 +0000 (13:36 -0800)]
Update documentation for recent changes

Document that -k can now be any cache identifier.  Suggest -L with
-b in krenew as was done with k5start.  Update the krenew -i
documentation for the current implementation.  Add -i to the krenew
usage output.  Remove the notes in k5start that -o, -g, and -m will
result in windows where the ticket cache is not accessible.

12 years agoTest that krenew keeps running on renewal failure
Russ Allbery [Thu, 29 Dec 2011 20:22:44 +0000 (12:22 -0800)]
Test that krenew keeps running on renewal failure

Use a non-writable directory to confirm that krenew doesn't exit
on failures to renew the ticket cache as long as it can read the
cache.

12 years agoFix error reporting from ticket expiration checks
Russ Allbery [Thu, 29 Dec 2011 19:47:36 +0000 (11:47 -0800)]
Fix error reporting from ticket expiration checks

Don't report an error immediately when checking for ticket
expiration, since k5start doesn't want to report an error if the
ticket cache has gone away.  It will just recreate it.  Instead,
defer error reporting to the auth hook, where krenew can report
an error.

12 years agoCheck krenew error reporting when the ticket cache goes away
Russ Allbery [Thu, 29 Dec 2011 19:43:55 +0000 (11:43 -0800)]
Check krenew error reporting when the ticket cache goes away

12 years agoPropagate SIGINT to the child process rather than exiting
Russ Allbery [Thu, 29 Dec 2011 19:37:35 +0000 (11:37 -0800)]
Propagate SIGINT to the child process rather than exiting

k5start and krenew now propagate SIGINT (Ctrl-C) to the child process
when running a command rather than exiting immediately.

Add actual tests in k5start for signal propagation and also test
SIGQUIT propagation in both k5start and krenew.

12 years agoClean up ticket cache naming and permission handling
Russ Allbery [Thu, 29 Dec 2011 19:10:35 +0000 (11:10 -0800)]
Clean up ticket cache naming and permission handling

Ticket caches passed to k5start or krenew with the -k option are now
used as-is without prepending "FILE:".  This allows both programs to
be used with non-file caches (unles the -o, -g, or -m options were
given to k5start, of course).  However, users who were relying on
k5start or krenew prepending "FILE:" may now need to add this
explicitly to the -k argument if they want the ticket cache to be set
in the environment with that prefix.

k5start, when run with the -o, -g, or -m options to change ticket
cache ownership or permissions, now writes a temporary ticket cache in
the same directory, sets its ownership and permissions, and then
replaces the existing cache with an atomic rename.  It also sets
permissions properly if it has to reauthenticate after backgrounding
itself.  This closes two windows where the cache may not be accessible
to the program using it if k5start were in the middle of refreshing
it.  Thanks to Harry Coin for the report.

12 years agoRemove from TODO things that are now implemented
Russ Allbery [Thu, 29 Dec 2011 17:18:39 +0000 (09:18 -0800)]
Remove from TODO things that are now implemented

12 years agoAdd a test for k5start setting file permissions
Russ Allbery [Thu, 29 Dec 2011 08:21:36 +0000 (00:21 -0800)]
Add a test for k5start setting file permissions

12 years agoAdd proper verification of -H and -K options
Russ Allbery [Thu, 29 Dec 2011 08:02:49 +0000 (00:02 -0800)]
Add proper verification of -H and -K options

Copy the convert_number function from util/perms.c into framework.c
and use it in k5start and krenew to check the argument to -H and
-K.  Add a test for error handling that currently only tests the
command-line option validation.

12 years agoUse the correct form of Stanford's copyright statement
Russ Allbery [Thu, 29 Dec 2011 07:19:31 +0000 (23:19 -0800)]
Use the correct form of Stanford's copyright statement

12 years agoRemove unnecessary includes
Russ Allbery [Thu, 29 Dec 2011 07:14:48 +0000 (23:14 -0800)]
Remove unnecessary includes

12 years agoRemove the aklog path handling from krenew
Russ Allbery [Thu, 29 Dec 2011 07:11:18 +0000 (23:11 -0800)]
Remove the aklog path handling from krenew

This is now handled by the generic framework.

12 years agoSlightly longer timeout on the k5start/daemon test
Russ Allbery [Thu, 29 Dec 2011 07:10:04 +0000 (23:10 -0800)]
Slightly longer timeout on the k5start/daemon test

One time the k5start process didn't die in 0.1 seconds, so let's
wait for 0.2 seconds instead.

12 years agoAdd the rra-c-util kafs/haspag test since we include the code
Russ Allbery [Thu, 29 Dec 2011 07:08:07 +0000 (23:08 -0800)]
Add the rra-c-util kafs/haspag test since we include the code

12 years agoAdd new tests imported from rra-c-util to tests/TESTS
Russ Allbery [Thu, 29 Dec 2011 07:02:35 +0000 (23:02 -0800)]
Add new tests imported from rra-c-util to tests/TESTS

12 years agoImprove POD tests
Russ Allbery [Thu, 29 Dec 2011 07:00:39 +0000 (23:00 -0800)]
Improve POD tests

Enable warnings, enable strict for the basic POD test and use
skip_all for it where appropriate.

12 years agoConvert k5start to the new framework, fix error handling behavior
Russ Allbery [Thu, 29 Dec 2011 06:53:25 +0000 (22:53 -0800)]
Convert k5start to the new framework, fix error handling behavior

Convert k5start to use a shared framework with krenew, removing lots
of duplicate code.  Fix error handling behavior so that k5start as a
daemon continues running even if it fails to obtain credentials.

12 years agoDiagnose and reject the combination of -H and a command
Russ Allbery [Thu, 29 Dec 2011 06:51:13 +0000 (22:51 -0800)]
Diagnose and reject the combination of -H and a command

Just omit -H in this case.

12 years agoFix informational output in tests/krenew/basic-t
Russ Allbery [Thu, 29 Dec 2011 06:49:48 +0000 (22:49 -0800)]
Fix informational output in tests/krenew/basic-t

12 years agoExtend the timeout in the k5start/sigchld test
Russ Allbery [Thu, 29 Dec 2011 06:49:18 +0000 (22:49 -0800)]
Extend the timeout in the k5start/sigchld test

Four seconds wasn't necessarily enough time, so extend it to five
seconds to avoid intermittant test failures.

12 years agoTest proper removal of PID files on krenew exit
Russ Allbery [Wed, 28 Dec 2011 20:18:16 +0000 (12:18 -0800)]
Test proper removal of PID files on krenew exit

12 years agoUpdate copyright date and notice for tests/krenew/basic-t
Russ Allbery [Wed, 28 Dec 2011 20:15:32 +0000 (12:15 -0800)]
Update copyright date and notice for tests/krenew/basic-t

12 years agoEnsure proper krenew exit status, add more tests
Russ Allbery [Wed, 28 Dec 2011 19:56:22 +0000 (11:56 -0800)]
Ensure proper krenew exit status, add more tests

Make sure that various instances of failing the initial authentication
return the correct error status.

12 years agoRewrite krenew to use a new generic framework
Russ Allbery [Wed, 28 Dec 2011 19:42:27 +0000 (11:42 -0800)]
Rewrite krenew to use a new generic framework

The new framework will be used for both k5start and krenew and
refactors the common code between them, including the infrastructure
for running commands and running as a daemon.

Clean up handling of when to exit on errors.  krenew now defaults
to remaining running if there's an error in contacting the KDC or
storing the new credentials, only exiting by default if the renewable
lifetime has expired or if the ticket cache has disappeared.  -i can
still be used to keep it running in those cases as well.  However,
without -i, it will always exit if the initial authentication fails.

krenew now removes any PID files that it writes on exit, and is better
about removing a copied ticket cache on exit.

12 years agoAlso change all references to "K5" to just Kerberos
Russ Allbery [Tue, 27 Dec 2011 18:39:15 +0000 (10:39 -0800)]
Also change all references to "K5" to just Kerberos

12 years agoRemove Kerberos v4 support in libtest.pl
Russ Allbery [Tue, 27 Dec 2011 18:38:56 +0000 (10:38 -0800)]
Remove Kerberos v4 support in libtest.pl

No need to worry about klist for Kerberos v4 tickets any longer.

12 years agoChange references to Kerberos v5 to just Kerberos
Russ Allbery [Tue, 27 Dec 2011 18:33:54 +0000 (10:33 -0800)]
Change references to Kerberos v5 to just Kerberos

Change references to Kerberos v5 to just Kerberos in the
documentation.  Kerberos v5 has been the default version of Kerberos
for over ten years now.

12 years agoRemove k4start
Russ Allbery [Tue, 27 Dec 2011 18:15:54 +0000 (10:15 -0800)]
Remove k4start

Remove k4start from the distribution.  I no longer have a Kerberos v4
environment with which to test and therefore no way to refactor and
restructure the code for other changes to the package.  Users who
still need k4start should use an older version of the package.

12 years agoUpdate to rra-c-util 4.0
Russ Allbery [Tue, 27 Dec 2011 17:57:48 +0000 (09:57 -0800)]
Update to rra-c-util 4.0

Update the included kafs library to the version from rra-c-util 4.0,
adding support for Mac OS X and Solaris 11.

* Build on systems where krb5/krb5.h exists but krb5.h does not.
* Build with OpenBSD Heimdal where there is no separate roken library.
* Kerberos probes no longer assume transitive library dependencies.
* Fix removal of /usr/include from Kerberos CPPFLAGS.
* Add notices to all files copied from rra-c-util.
* Fix replacement of krb5_free_error_message.
* Support older Heimdal with no-context krb5_get_init_creds_opt_free.
* Improve probe for krb5_kt_free_entry.
* Fix use of long long, where available, in replacement mkstemp.
* Include strings.h where present for more POSIX string functions.
* Use typedef for a missing sig_atomic_t.
* Avoid passing a NULL context to krb5_get_error_message.
* Fix integer data types in the messages utility library.
* Use configure-detected aklog path in the test suite.
* Add replacement for a missing strndup (such as on Mac OS X).
* Add tests for messages-krb5 utility functions.
* Update compiler warning flags for make warnings to gcc 4.6.1.

Also fix a compiler warning in k5start.

12 years agoAdd designator to stop words for POD spelling check
Russ Allbery [Tue, 27 Dec 2011 17:56:52 +0000 (09:56 -0800)]
Add designator to stop words for POD spelling check

Also switch to my current standard for stopwords and move them to the
very start of the document.

12 years agoUpdate to C TAP Harness 1.9
Russ Allbery [Tue, 27 Dec 2011 17:18:09 +0000 (09:18 -0800)]
Update to C TAP Harness 1.9

* Add a usage message and -h option to runtests.
* Honor -s and SOURCE in runtests even if BUILD is not set.
* Improve test summary at the end of a C test case.
* Flush stderr before printing TAP output.
* Improve portability of output functions in the shell libtap.sh.
* Add notices to all files copied from  C TAP Harness.

13 years agoSet signal handlers with sigaction instead of signal
Russ Allbery [Wed, 22 Sep 2010 23:31:32 +0000 (16:31 -0700)]
Set signal handlers with sigaction instead of signal

Set signal handlers with sigaction instead of signal, which may fix
problems propagating multiple signals to child processes in k5start
and krenew.

13 years agoAdd some more complexity to the SIGCHLD test
Russ Allbery [Wed, 22 Sep 2010 23:21:38 +0000 (16:21 -0700)]
Add some more complexity to the SIGCHLD test

Send an explicit SIGCHLD to the k5start job, and then run through
a SIGSTOP/SIGCONT cycle with some delays to ensure that the SIGCHLD
interruption was already seen.  Enable the test by default.

13 years agoAdd a test for SIGCHLD handling
Russ Allbery [Wed, 22 Sep 2010 22:30:51 +0000 (15:30 -0700)]
Add a test for SIGCHLD handling

This currently doesn't fail, so I'm not sure it's testing anything
effectively, but it still tests wakeup handling so let's keep it.

13 years agoAdd two new feature requests for k5start to TODO
Russ Allbery [Mon, 6 Sep 2010 21:26:42 +0000 (14:26 -0700)]
Add two new feature requests for k5start to TODO

14 years agoUpdate spec file for 3.16 and fix some problems
Andy Cobaugh [Mon, 29 Mar 2010 22:35:30 +0000 (15:35 -0700)]
Update spec file for 3.16 and fix some problems

Update the RPM spec file to the 3.16 release.  Use %{dist} in Release as
the old method of reading redhat-release doesn't work on distros like
centos and fedora.  It also now correctly requires krb5-libs instead of
krb5-workstation.

14 years agoFix some variable errors in the krb5_get_renewed_creds replacement
Russ Allbery [Thu, 4 Feb 2010 03:42:24 +0000 (19:42 -0800)]
Fix some variable errors in the krb5_get_renewed_creds replacement

14 years agoFix one incorrect krb5_free_unparsed_name call
Russ Allbery [Thu, 4 Feb 2010 01:10:13 +0000 (17:10 -0800)]
Fix one incorrect krb5_free_unparsed_name call

14 years agoReverse the direction of the krb5_free_unparsed_name probe
Russ Allbery [Thu, 4 Feb 2010 00:55:41 +0000 (16:55 -0800)]
Reverse the direction of the krb5_free_unparsed_name probe

If krb5_xfree exists, use it, even if krb5_free_unparsed_name also exists.
This avoids a deprecation warning from Heimdal, which provides the latter
function but doesn't prefer it.

14 years agoDiagnose -U/-u/-i conflicts and use krb5_free_unparsed_name
Russ Allbery [Thu, 4 Feb 2010 00:13:51 +0000 (16:13 -0800)]
Diagnose -U/-u/-i conflicts and use krb5_free_unparsed_name

Diagnose the nonsensical combination of -U and -u or -i options in
k5start and report an error rather than ignoring -u and appending the
instance from -i onto the principal obtained via -U.

Provide krb5_free_unparsed_name in terms of krb5_xfree for Heimdal.

Call krb5_free_unparsed_name to free the results of krb5_unparse_name
instead of just calling free.  This probably will never matter on UNIX,
but it's correct coding style.

14 years agoRefactor Kerberos portability into a new portability layer
Russ Allbery [Thu, 4 Feb 2010 00:03:46 +0000 (16:03 -0800)]
Refactor Kerberos portability into a new portability layer

Move the #ifdefs out of the main code and instead provide a Kerberos
portability layer that exposes roughly the Heimdal API.  Then call that
layer uniformly throughout the rest of the code.

14 years agoSkip the xmalloc tests unless RRA_MAINTAINER_TESTS is set
Russ Allbery [Wed, 20 Jan 2010 01:34:31 +0000 (17:34 -0800)]
Skip the xmalloc tests unless RRA_MAINTAINER_TESTS is set

All of the failures in automated testing have been problems with the
assumptions around memory allocation or problems with the test suite, not
problems with the underlying xmalloc code.

14 years agoInclude .gitignore and krenew-agent in the distribution release/3.16
Russ Allbery [Tue, 19 Jan 2010 18:32:04 +0000 (10:32 -0800)]
Include .gitignore and krenew-agent in the distribution

14 years agoInclude util/macros.h in the libutil sources
Russ Allbery [Tue, 19 Jan 2010 18:30:40 +0000 (10:30 -0800)]
Include util/macros.h in the libutil sources

14 years agoFix Makefile.am typo listing util/perms.h
Russ Allbery [Tue, 19 Jan 2010 18:29:41 +0000 (10:29 -0800)]
Fix Makefile.am typo listing util/perms.h

14 years agoUpdate 3.16 release date
Russ Allbery [Tue, 19 Jan 2010 18:28:15 +0000 (10:28 -0800)]
Update 3.16 release date

14 years agoRelease 3.16
Russ Allbery [Tue, 19 Jan 2010 04:47:20 +0000 (20:47 -0800)]
Release 3.16

14 years agoAdjust the k4start includes for the util reorganization
Russ Allbery [Tue, 19 Jan 2010 04:46:59 +0000 (20:46 -0800)]
Adjust the k4start includes for the util reorganization

14 years agoUpdate to rra-c-util 2.2
Russ Allbery [Tue, 19 Jan 2010 04:33:43 +0000 (20:33 -0800)]
Update to rra-c-util 2.2

* Add GCC function attributes alloc_size, malloc, and nonnull.
* Use AC_TYPE_LONG_LONG_INT instead of AC_CHECK_TYPES([long long]).

Also split up util/util.h into separate header files for each set of
functions and add similar header files for the functions that are
unique to this package.

Add some missing krb5.h includes that were masked by includes in other
header files.

14 years agoRemove obsolete configure comment about disabling k4start
Russ Allbery [Tue, 19 Jan 2010 03:00:23 +0000 (19:00 -0800)]
Remove obsolete configure comment about disabling k4start

14 years agoUse a better test for how to get the realm
Russ Allbery [Tue, 19 Jan 2010 02:51:18 +0000 (18:51 -0800)]
Use a better test for how to get the realm

Now that I know about krb5_principal_get_realm, don't probe for the
krb5_realm type, just for that function.  We assume that Heimdal has
that function; it looks like it's been there since around 0.4.

14 years agoFix the non-alloc branch of opt_init handling
Russ Allbery [Tue, 19 Jan 2010 02:44:02 +0000 (18:44 -0800)]
Fix the non-alloc branch of opt_init handling

If krb5_get_init_creds_opt_alloc wasn't available, the argument to
krb5_get_init_creds_opt_init was incorrect.  Fix.

14 years agoFix the test suite to pass with Heimdal user space
Russ Allbery [Tue, 19 Jan 2010 02:42:05 +0000 (18:42 -0800)]
Fix the test suite to pass with Heimdal user space

Heimdal's klist has a different output format.  Update the horrible
regexes that parse the klist output to allow for either output format.
We should probably be building our own klist equivalent for testing.

14 years agoAvoid Heimdal functions marked as deprecated
Russ Allbery [Tue, 19 Jan 2010 02:19:50 +0000 (18:19 -0800)]
Avoid Heimdal functions marked as deprecated

Use krb5_principal_get_realm instead of krb5_princ_realm, which
also simplifies the logic.  Add appropriate const markings.

Use krb5_get_init_creds_opt_alloc if available instead of using a
static structure and calling _opt_init.  Always allocate new memory
for the krb5_get_init_creds_opt structure, even if _opt_alloc isn't
available, and store a pointer in the options struct instead of the
struct itself.

14 years agoImprove the diagnostic message output from k5start
Russ Allbery [Tue, 19 Jan 2010 01:50:38 +0000 (17:50 -0800)]
Improve the diagnostic message output from k5start

14 years agoAdd -L option saying to log messages to syslog
Russ Allbery [Tue, 19 Jan 2010 01:27:27 +0000 (17:27 -0800)]
Add -L option saying to log messages to syslog

Add the -L option to k5start and krenew, saying to log messages to
syslog as well as standard output or standard error.

Change two verbose printfs in k5start to use notice instead.

14 years agoMention PAG support in -h output if compiled in
Russ Allbery [Tue, 19 Jan 2010 00:16:28 +0000 (16:16 -0800)]
Mention PAG support in -h output if compiled in

k5start and krenew now say, in -h output, if they will attempt to
create a new AFS PAG for commands run in combination with -t (enabled
by --enable-setpag), allowing one to determine whether that support
was compiled in.

14 years agoDefine HAVE_KAFS if built with any sort of AFS support
Russ Allbery [Tue, 19 Jan 2010 00:12:03 +0000 (16:12 -0800)]
Define HAVE_KAFS if built with any sort of AFS support

AFS support may result in a wide variety of different #defines depending
on what's available, and kafs/kafs.h already untangles them.  Export from
it a simple HAVE_KAFS define that's set only if some sort of AFS support
is available.  This allows programs using it to, for instance, display
different help output based on whether AFS support is compiled in.

14 years agoReword awkward sentence in the k5start man page
Russ Allbery [Mon, 18 Jan 2010 23:38:05 +0000 (15:38 -0800)]
Reword awkward sentence in the k5start man page

Thanks, Jeff Blaine.

14 years agoAllow the argument to -k to start with FILE:
Russ Allbery [Tue, 5 Jan 2010 21:41:28 +0000 (13:41 -0800)]
Allow the argument to -k to start with FILE:

Allow the argument to -k to start with FILE: and strip off that prefix
to form the ticket cache name.  -k still forces its argument to be a
file-based cache, however; FILE: is the only cache type designator
supported.  Use the KRB5CCNAME environment variable for other ticket
cache types.

14 years agoFix segfault when -o is used without -k in k5start
Russ Allbery [Tue, 5 Jan 2010 21:39:48 +0000 (13:39 -0800)]
Fix segfault when -o is used without -k in k5start

Correctly set the ticket cache path in k5start when the -k option was
not given, fixing a NULL pointer dereference when the -o, -g, or -m
options were given without -k.

14 years agoRemove incorrect includes of sys/signal.h, add NEWS entry
Russ Allbery [Fri, 25 Sep 2009 22:20:22 +0000 (15:20 -0700)]
Remove incorrect includes of sys/signal.h, add NEWS entry

sys/signal.h is an internal header.  signal.h is the right header to
include.  Remove the sys/signal.h includes.  Add a NEWS entry for the
build fix.

Follow-on from 51532beb8d5998448072cae93f84a52852008cfe.

14 years agoInclude <signal.h>, needed on Solaris 9
Tim Bishop [Fri, 25 Sep 2009 22:17:31 +0000 (15:17 -0700)]
Include <signal.h>, needed on Solaris 9

14 years agoTODO updates for daemonized k5start and krenew
Russ Allbery [Sat, 15 Aug 2009 22:20:30 +0000 (15:20 -0700)]
TODO updates for daemonized k5start and krenew

Record that I want to:

* Add the -i flag to k5start
* Have krenew -i use a faster retry than the normal backoff
* Add optional logging of errors via syslog

14 years agoUpdate testing instructions for new C TAP Harness
Russ Allbery [Sat, 15 Aug 2009 22:16:00 +0000 (15:16 -0700)]
Update testing instructions for new C TAP Harness

Suggest running tests/runtests -o instead of running the test case
directly, taking advantage of the new C TAP Harness support.

14 years agoUpdate README on autotools requirements to standard wording
Russ Allbery [Sat, 15 Aug 2009 22:01:13 +0000 (15:01 -0700)]
Update README on autotools requirements to standard wording

Copy the wording from C TAP Harness, since it's slightly more
accurate.  Also mention the need for Perl to bootstrap the manual
pages.

14 years agoClean up in the kafs test suite even if skipping everything release/3.15
Russ Allbery [Sat, 15 Aug 2009 21:05:46 +0000 (14:05 -0700)]
Clean up in the kafs test suite even if skipping everything

When AFS support isn't available or built, we were still creating
basic-output and basic-errors but not removing them.  Fix that and
add -f to the rm commands so that they don't fail if the files
don't exist for some reason.

14 years agoAdd more test files to the distribution
Russ Allbery [Sat, 15 Aug 2009 21:04:06 +0000 (14:04 -0700)]
Add more test files to the distribution

More test files were missed in the restructuring of Makefile.am.

14 years agoUpdate kstart.spec for the 3.15 release
Russ Allbery [Sat, 15 Aug 2009 21:01:00 +0000 (14:01 -0700)]
Update kstart.spec for the 3.15 release

14 years agoDistribute tests/TESTS
Russ Allbery [Sat, 15 Aug 2009 20:59:28 +0000 (13:59 -0700)]
Distribute tests/TESTS

This was missed in the reorganization of Makefile.am from no longer having
to copy files into the build tree.

14 years agoUse indentation in another NEED_KAFS block
Russ Allbery [Sat, 15 Aug 2009 20:58:01 +0000 (13:58 -0700)]
Use indentation in another NEED_KAFS block

14 years agoRemove portable/kafs.h from the libportable sources
Russ Allbery [Sat, 15 Aug 2009 20:57:14 +0000 (13:57 -0700)]
Remove portable/kafs.h from the libportable sources

This was replaced by the new code in the kafs directory.

14 years agoRelease 3.15
Russ Allbery [Sat, 15 Aug 2009 20:56:01 +0000 (13:56 -0700)]
Release 3.15

14 years agoUse bool wherever appropriate instead of int
Russ Allbery [Sat, 15 Aug 2009 06:24:35 +0000 (23:24 -0700)]
Use bool wherever appropriate instead of int

14 years agoCheck for correct variable for optional Kerberos v4
Russ Allbery [Sat, 15 Aug 2009 06:22:19 +0000 (23:22 -0700)]
Check for correct variable for optional Kerberos v4

m4/krb4.m4 was setting rra_use_krb4 to true but configure.ac was checking
for yes.  Make configure.ac consistent with m4/krb4.m4.

14 years agoEnable Automake silent rules and NEWS checking
Russ Allbery [Sat, 15 Aug 2009 03:41:59 +0000 (20:41 -0700)]
Enable Automake silent rules and NEWS checking

Enable Automake silent rules so that the user can request a silent
build and document in README.  Use silent mode by default with make
warnings.

Also enable Automake NEWS checking.

Update the required Automake and Autoconf versions to 1.11 and 2.64.

14 years agoRemove the KAFS_SYSCALL_OBJECTS substitution variable
Russ Allbery [Sat, 15 Aug 2009 02:38:25 +0000 (19:38 -0700)]
Remove the KAFS_SYSCALL_OBJECTS substitution variable

No longer used now that we include the relevant files in kafs/kafs.c.

14 years agoFix the help string for --with-krb4
Russ Allbery [Sat, 15 Aug 2009 02:33:46 +0000 (19:33 -0700)]
Fix the help string for --with-krb4

When Kerberos v4 support is optional, --with-krb4's help string didn't
show the brackets around =DIR properly because the Autoconf quadragraphs
were written incorrectly.

14 years agoSet hidden visibility for Kerberos v4 portability functions
Russ Allbery [Sat, 15 Aug 2009 02:33:19 +0000 (19:33 -0700)]
Set hidden visibility for Kerberos v4 portability functions

This doesn't matter for kstart, but it brings us into line with the
rra-c-util 2.0 code.

14 years agoRemove use of RETSIGTYPE
Russ Allbery [Sat, 15 Aug 2009 02:32:19 +0000 (19:32 -0700)]
Remove use of RETSIGTYPE

All systems that use a return type of other than void for signal handlers
are long since dead, so use void unconditionally.  Fixes compilation
errors that began when I removed the Autoconf test from configure.ac.

14 years agoUpdate kafs replacement code and Autoconf probes from rra-c-util
Russ Allbery [Sat, 15 Aug 2009 02:29:02 +0000 (19:29 -0700)]
Update kafs replacement code and Autoconf probes from rra-c-util

The kafs code is now in a kafs directory instead of in portable and uses
an Automake conditional instead of AC_LIBOBJ to add it to the compilation.
The Autoconf code now follows my normal Autoconf coding style, including
separate --with-*-include and --with-*-lib configure options for libkafs
and the AFS libraries (if needed).  The kafs replacement also now has a
test suite.

14 years agoLocal variable cleanup for libtap.sh
Russ Allbery [Fri, 14 Aug 2009 23:43:17 +0000 (16:43 -0700)]
Local variable cleanup for libtap.sh

Include the fix for local variable declarations in libtap.sh that will
be in the C TAP Harness 1.1 release.

14 years agoUpdate M4 files to the latest rra-c-util versions
Russ Allbery [Thu, 6 Aug 2009 23:28:52 +0000 (16:28 -0700)]
Update M4 files to the latest rra-c-util versions

The changes here are only comment changes.

14 years agoAdd NEWS entry for new --with-krb4-* options
Russ Allbery [Thu, 6 Aug 2009 23:26:29 +0000 (16:26 -0700)]
Add NEWS entry for new --with-krb4-* options

14 years agoUpdate Makefile.am copyright date
Russ Allbery [Thu, 6 Aug 2009 23:25:28 +0000 (16:25 -0700)]
Update Makefile.am copyright date

14 years agoFix a typo in EXTRA_DIST
Russ Allbery [Thu, 6 Aug 2009 23:24:27 +0000 (16:24 -0700)]
Fix a typo in EXTRA_DIST

14 years agoUse Automake conditionals for k4start
Russ Allbery [Thu, 6 Aug 2009 23:23:48 +0000 (16:23 -0700)]
Use Automake conditionals for k4start

Automake conditionals are cleaner and more readable than using Autoconf
substitution variables to control conditional building of k4start.

14 years agoChoose whether to build k4start based on the presence of libraries
Russ Allbery [Thu, 6 Aug 2009 22:59:41 +0000 (15:59 -0700)]
Choose whether to build k4start based on the presence of libraries

k4start is now built optionally based on whether Kerberos v4 libraries
are available, removing the need for --disable-k4start if no Kerberos
v4 libraries are present.  The option is still supported to explicitly
disable building k4start even if Kerberos v4 libraries are found.

14 years agoRewrite Kerberos v4 configure probes
Russ Allbery [Thu, 6 Aug 2009 22:57:10 +0000 (15:57 -0700)]
Rewrite Kerberos v4 configure probes

Rewrite the configure probes for Kerberos v4 to use the same style as
the Kerberos v5 configure probes.  Among the improvements are falling
back on direct library probing if the results of krb5-config fail, the
addition of --with-krb4-include and --with-krb4-lib flags, and support
for probing for optional Kerberos v4 libraries.

14 years agoAdd support for krb5_get_error_string
Russ Allbery [Sat, 18 Jul 2009 06:57:45 +0000 (23:57 -0700)]
Add support for krb5_get_error_string

Add support for the old Heimdal krb5_get_error_string interface.
Thanks, Chaskiel Grundman.

14 years agoImprove test suite status reporting
Russ Allbery [Sat, 18 Jul 2009 05:55:53 +0000 (22:55 -0700)]
Improve test suite status reporting

Use plan skip_all instead of skipping every test individually when
configuration required for running any tests is missing.  With the
current version of runtests, this produces more informative output.

Use BAIL_OUT instead of die in Test::More Perl scripts, which will
include the error message in the summary output from runtests.

Check whether k4start was even built before attempting any k4start
tests.

14 years agoUse strlcpy and setenv
Russ Allbery [Sat, 18 Jul 2009 04:16:14 +0000 (21:16 -0700)]
Use strlcpy and setenv

Use strlcpy instead of strcpy and setenv instead of putenv.

14 years agoFix typo in portable/mkstemp-t.c
Russ Allbery [Sat, 18 Jul 2009 04:08:54 +0000 (21:08 -0700)]
Fix typo in portable/mkstemp-t.c

14 years agoMake the test suite more robust against timing issues
Russ Allbery [Sat, 18 Jul 2009 02:08:09 +0000 (19:08 -0700)]
Make the test suite more robust against timing issues

Fix some timing issues with the test suite that caused spurious
failures on fast systems and try to make it more robust in the face of
different process scheduling.  This probably still isn't perfect.

Also fix some lingering test suite problems from the new runtests and
builddir != srcdir support.

14 years agoSimplify test suite code for new C TAP Harness features
Russ Allbery [Sat, 18 Jul 2009 00:00:35 +0000 (17:00 -0700)]
Simplify test suite code for new C TAP Harness features

Use the BUILD and SOURCE environment variables from C TAP Harness
and avoid doing Autoconf substitutions in any of the test suite
programs.  Remove the Automake code for copying the test suite into
the build directory.

14 years agoSupport aspell for spelling tests and skip them by default
Russ Allbery [Fri, 17 Jul 2009 23:37:11 +0000 (16:37 -0700)]
Support aspell for spelling tests and skip them by default

Update the test case for POD spelling to the current version from
C TAP Harness and skip tests unless RRA_MAINTAINER_TESTS is enabled.
Support and prefer using aspell for spell checking.  Reword wakeup to
a better phrase in the POD documentation, caught by aspell.

14 years agoMove man page generation to autogen
Russ Allbery [Fri, 17 Jul 2009 23:18:58 +0000 (16:18 -0700)]
Move man page generation to autogen

Move generation of the man pages via pod2man to autogen from the makefile.
Distribute man pages by using dist_man_MANS, which reduces the number of
files we have to list in EXTRA_DIST.  Use set -e in autogen.

14 years agoAnchor paths in .gitignore
Russ Allbery [Fri, 17 Jul 2009 23:11:59 +0000 (16:11 -0700)]
Anchor paths in .gitignore

Anchor any pattern that's not intended to be recursive to the top of the
tree in .gitignore.

14 years agoRemove AC_TYPE_SIGNAL and RETSIGTYPE
Russ Allbery [Fri, 17 Jul 2009 23:08:21 +0000 (16:08 -0700)]
Remove AC_TYPE_SIGNAL and RETSIGTYPE

Remove the configure.ac probe for the return type of signal.  All
platforms still likely to be in use return void and the Autoconf
manual now recommends returning void unconditionally.

14 years agoRemove portable/time.h
Russ Allbery [Fri, 17 Jul 2009 23:06:26 +0000 (16:06 -0700)]
Remove portable/time.h

Remove portable/time.h and AC_HEADER_TIME from configure.ac.  This macro
is considered obsolete, since all systems requiring protection from
including sys/time.h and time.h at the same time are long-dead.  Instead
include time.h unconditionally and sys/time.h conditionally in each C
file that was previously including portable/time.h.