/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

Convert some programs to use the exit codes from <sysexits.h>.  Change
all programs using the "argp" parsing functions to use them correctly;
checking return value, using argp_error() to report parse errors etc.

* plugin-runner.c: Use <sysexits.h> exit codes.  Always use fallback,
                   even on option errors, except for "--help", etc.
  (getplugin): Make sure "errno" is set correctly on return.
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not cause the fallback to be invoked.
          In all other options, use fallback on any error.
  (parse_opt, parse_opt_config_file): Reset errno at start and return
                                      errno.  No need to check "arg"
                                      for NULL.  New "--help",
                                      "--usage", and "--version"
                                      options.
  (parse_opt): Accept empty string as global option.  Do not print
               errors which will be detected and reported later.  Do
               "argp_error()" on parse error or empty plugin names.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.  Do not
                             return successful exit code on "--help",
                             etc. since this would give the wrong
                             message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version"
          options which do not return a successful exit code.
  (parse_opt): Reset errno at start and return errno.  Do
               "argp_error()" on parse errors.  New "--help",
               "--usage", and "--version" options.
* plugins.d/password-prompt.c: Use exit codes from <sysexits.h>.  Do
                               not return successful exit code on
                               "--help", etc. since this would give
                               the wrong message to "plugin-runner".
  (main): Declare our own "--help", "--usage", and "--version" options
          which do not return a successful exit code.  Do
          close(STDOUT_FILENO) after writing to check its return code.
  (parse_opt): Reset errno at start and return errno.
Filename Latest Rev Last Changed Committer Comment Size
..
.bzr-builddeb 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
debian 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in Diff
plugins.d 13 16 years ago Björn Påhlsson Added following support: Pluginbased client handle Diff
.bzrignore 223 16 years ago Teddy Hogeborn * .bzrignore (plugins.d/askpass-fifo): Added. * M 206 bytes Diff Download File
clients.conf 237.2.20 15 years ago Teddy Hogeborn Change the default value of the "checker" option c 2.4 KB Diff Download File
common.ent 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 94 bytes Diff Download File
COPYING 24.1.51 16 years ago Björn Påhlsson Added configuration files support for mandos-clien 34.2 KB Diff Download File
default-mandos 185 16 years ago Teddy Hogeborn * .bzr-builddeb/default.conf: New. * Makefile (in 174 bytes Diff Download File
init.d-mandos 237.2.132 15 years ago Teddy Hogeborn * init.d-mandos (Required-Start, Required-Stop): B 4.1 KB Diff Download File
File initramfs-tools-hook 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 4.5 KB Diff Download File
initramfs-tools-hook-conf 256 15 years ago Teddy Hogeborn * initramfs-tools-hook-conf: Security bug fix: Add 407 bytes Diff Download File
File initramfs-tools-script 237.2.132 15 years ago Teddy Hogeborn * init.d-mandos (Required-Start, Required-Stop): B 3.6 KB Diff Download File
INSTALL 237.2.82 15 years ago Teddy Hogeborn * INSTALL: Changed "Python 2.4" to "Python 2.5". * 4.8 KB Diff Download File
legalnotice.xml 174 16 years ago Teddy Hogeborn * legalnotice.xml: Copy DocBook 4.4-formatted text 1 KB Diff Download File
Makefile 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 11.8 KB Diff Download File
File mandos 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 68 KB Diff Download File
mandos-clients.conf.xml 237.2.133 15 years ago Teddy Hogeborn * debian/control (Standards-Version): Updated to " 13.7 KB Diff Download File
File mandos-ctl 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 7.6 KB Diff Download File
File mandos-keygen 237.2.156 15 years ago Teddy Hogeborn * mandos-keygen (keygen): Warn about long key gene 9.4 KB Diff Download File
mandos-keygen.xml 237.2.9 15 years ago Teddy Hogeborn * README: Update copyright year; add "2009". * deb 14.2 KB Diff Download File
mandos-options.xml 237.2.77 15 years ago Teddy Hogeborn Support not using IPv6 in server: * mandos (Avahi 3.6 KB Diff Download File
mandos.conf 237.2.77 15 years ago Teddy Hogeborn Support not using IPv6 in server: * mandos (Avahi 1.2 KB Diff Download File
mandos.conf.xml 237.2.86 15 years ago Teddy Hogeborn * initramfs-tools-hook: Add missing terminating `" 7.6 KB Diff Download File
mandos.lsm 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 908 bytes Diff Download File
mandos.xml 237.2.133 15 years ago Teddy Hogeborn * debian/control (Standards-Version): Updated to " 20.8 KB Diff Download File
NEWS 237.2.155 15 years ago Teddy Hogeborn Merge from release branch. 4.6 KB Diff Download File
overview.xml 183 16 years ago Teddy Hogeborn * Makefile (install-client-nokey): Do "&&" instead 926 bytes Diff Download File
plugin-runner.c 237.2.157 15 years ago Teddy Hogeborn Convert some programs to use the exit codes from < 32.3 KB Diff Download File
plugin-runner.conf 237.2.105 15 years ago Teddy Hogeborn * initramfs-tools-hook: Bug fix: Add "--userid" an 380 bytes Diff Download File
plugin-runner.xml 237.2.40 15 years ago Teddy Hogeborn * debian/mandos-client.lintian-overrides: Remove o 20.4 KB Diff Download File
README 237.2.84 15 years ago Teddy Hogeborn * README (The Plugin System): Improve wording. 8.4 KB Diff Download File
TODO 237.2.154 15 years ago Teddy Hogeborn * plugins.d/password-prompt.c: Use exit codes from 3.7 KB Diff Download File