| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Add SPDX-License-Identifier headers to all substantial source files.
Also canonicalize copyright date formats and fix a few copyright
notices that weren't in my standard layout.
|
|
|
|
|
| |
Flesh out support for Clang warnings and compile cleanly under Clang
with most warnings enabled (-Weverything with some exclusions).
|
|
|
|
|
|
| |
Use Autoconf to probe for warning flags, update rra-c-util files
with various warning fixes, and fix newly-discovered warnings in
the remctl source base caught by GCC 6.
|
|
|
|
|
|
|
|
|
|
|
| |
Current versions of Ruby 1.9 now throw different exceptions in
several places than we had previously expected. Allow both the
old and new exceptions.
Change-Id: I4f20e72c65f788aebacdce6831301f9e6f2b1c0a
Reviewed-on: https://gerrit.stanford.edu/1365
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We have to try multiple different command-line options for kinit
since MIT and Heimdal are different, and MIT now reports errors
to standard error. Supress standard error when doing this probing
in the Python and Ruby test suites.
Change-Id: I836be58da9b7cbea4ec6a140b7a29080f5ad4c9f
Reviewed-on: https://gerrit.stanford.edu/1364
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
|
|
|
|
|
|
|
| |
Change-Id: Iba0376ea03a749d81abc2eeb49b0b5cf7d3e8847
Reviewed-on: https://gerrit.stanford.edu/1353
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a Kerberos library and gss_krb5_import_cred are available at build
time, libremctl now uses them to implement remctl_set_ccache to avoid
affecting global program GSS-API state. If those requirements are
met, remctl_set_ccache will only affect the remctl context on which
it's called.
This also requires importing the Kerberos portability layer, so make
sure that it's usable for the TAP Kerberos add-on.
Change-Id: I561812d0e36df6adf52d974dd5390953940865c5
Reviewed-on: https://gerrit.stanford.edu/1198
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
|
|
|
|
|
|
|
|
| |
Also change the license on the POD documentation from Expat to the
all-permissive license and switch the license on several remctl
source files from the MIT license to the Expat license.
Change-Id: Ie7ebedf3b56cc2c19211217282519a7e6200c9e2
|
|
|
|
| |
Change-Id: I108a825614ab6e6d048fc83251a74a73cd89a4fd
|
|
|
|
| |
Change-Id: Id02b8ee170911eb034ea2b4c5a659e5711dd6f66
|
|
|
|
|
|
|
|
|
| |
Update the TAP support library to use config/principal and
config/keytab rather than files under data. Update most of the
tests to also use config/tmp to handle temporary files for running
tests.
Change-Id: I014cdf5e15e1d1bbeabfaa7feb60e1b97bb29c2b
|
| |
|
| |
|
|
|
|
|
| |
We need to try kinit --no-afslog first in all of our test suites,
not just the kinit.c C TAP add-on.
|
| |
|
| |
|
|
|
|
| |
Fix a few minor issues that turned up with the new, stricter warnings.
|
|
|
|
|
| |
Mention that error tokens are returned as tokens, not as exceptions.
Do this mostly so that the README file will format properly on the web.
|
|
|
|
|
| |
faq2html was unhappy with some of the formatting of ruby/README, so
tweak it a little to make it happier.
|
|
|
|
|
|
| |
The signature of rb_cvar_set has changed between 1.8 and 1.9.1. Prefer
the 1.9.1 version and use a hack to try to detect Ruby 1.8 and add the
fourth argument when building against that version.
|
|
|
|
|
|
|
| |
If libdir is set to something else in extconf.rb, that changes the install
location when using the distribution paths, which complicates Debian
packaging. Instead, set LDFLAGS in a different way to prefer our
directories.
|
|
|
|
|
|
|
| |
Force the link with our just-built copy of libremctl and don't check for
the library. mkmf is apparently too stupid to use $LDFLAGS when searching
for a shared library and fails unless libremctl is already installed in
the system locations.
|
| |
|
|
|
|
|
|
|
| |
The syntax we're using to add a string to the thrown Remctl::Error
expects a regular C string, not a Ruby object, so don't convert the
results of remctl_error() to a Ruby object before passing it into
rb_raise.
|
|
|
|
|
| |
Despite the name of the C variable, the exception is ArgumentError, not
ArgError.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Suppress strict prototype warnings for the Ruby build since the Ruby
headers don't use strict prototypes.
Stop passing GCC-specific warning suppression flags into the language
binding build systems unless the compiler used to build remctl is GCC.
This still isn't quite right, since the language bindings may use a
different compiler than the main remctl build, but it should be closer
than the previous behavior of using GCC flags unconditionally.
Add the Ruby CFLAGS to CPPFLAGS since we override CFLAGS during the
build. At least with the current Ruby build system, this should
accomplish the same thing.
Change the Ruby extension to be remctl (lowercase), although the class
is Remctl (titlecase). The original contributed code had this right and
I misunderstood what was happening.
Undefine Autoconf PACKAGE_* variables that Ruby also defines before
including ruby.h, and flag unused variables required by the Ruby API
to suppress GCC compiler warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Correct the README somewhat on terminology and on which exceptions are
thrown. Remove (required) notation for arguments when all arguments are
required. Standardize (hopefully) on correct Ruby notation for methods.
Remove gcc warning options from the CFLAGS in the Ruby extension. We'll
deal with that another way.
Declare all functions except Init_remctl static and rename Init_remctl
to Init_Remctl to match the name of the class. Handle a few more places
out of memory errors are possible.
|
|
|