Skip Menu |
 

Subject: Add kinit long option support for all platforms
kinit supports long-option variants of several flags, but only on
Windows. We should add the portability logic necessary to use the
platform getopt_long() or our own implementation, and use it in kinit
to support those long options on all platforms.
From: ghudson@mit.edu
Subject: git commit
Download (untitled) / with headers
text/plain 2.1KiB

Move the util/windows getopt to libkrb5support

Relocate the internal getopt() and getopt_long() code to util/support,
and build conditionally. Put declarations in k5-platform.h. Adjust
Windows build directives for src/clients. Remove getopt-related #defines
from kinit.c, allowing kinit to use getopt_long() on all platforms.

[ghudson@mit.edu: fix some Windows build issues]

https://github.com/krb5/krb5/commit/8f9ade8ec50cde1176411085294f85ecfb2820a4
Author: Matt Rogers <mrogers@redhat.com>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: 8f9ade8ec50cde1176411085294f85ecfb2820a4
Branch: master
src/Makefile.in | 8 ++---
src/clients/kcpytkt/Makefile.in | 2 +-
src/clients/kcpytkt/kcpytkt.c | 7 +----
src/clients/kdeltkt/Makefile.in | 2 +-
src/clients/kdeltkt/kdeltkt.c | 7 +----
src/clients/kdestroy/Makefile.in | 2 +-
src/clients/kdestroy/kdestroy.c | 6 ----
src/clients/kinit/Makefile.in | 6 +---
src/clients/kinit/kinit.c | 37 ++-----------------------
src/clients/klist/Makefile.in | 2 +-
src/clients/klist/klist.c | 6 ----
src/clients/kswitch/Makefile.in | 2 +-
src/clients/kvno/Makefile.in | 2 +-
src/clients/kvno/kvno.c | 4 ---
src/configure.in | 20 ++++++++++++++
src/include/k5-platform.h | 39 +++++++++++++++++++++++++++
src/util/support/Makefile.in | 23 ++++++++++++++--
src/util/support/deps | 6 ++++
src/util/{windows => support}/getopt.c | 14 +++------
src/util/{windows => support}/getopt_long.c | 13 +++------
src/util/windows/Makefile.in | 6 +---
src/util/windows/getopt.h | 34 -----------------------
src/windows/installer/wix/files.wxi | 2 -
src/windows/ms2mit/Makefile.in | 4 +-
src/windows/ms2mit/mit2ms.c | 4 +--
src/windows/ms2mit/ms2mit.c | 3 --
26 files changed, 114 insertions(+), 147 deletions(-)