- 
Committer:
Teddy Hogeborn
- 
Date:
2009-10-24 19:17:52 UTC
- 
Revision ID:
teddy@fukt.bsnet.se-20091024191752-7g6xlf6wpp2pdexb
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.
 
 
|  .. | 
|  .bzr-builddeb | 185 | 17 years ago | Teddy Hogeborn | * .bzr-builddeb/default.conf: New.
* Makefile (in |  |   |  | 
|  debian | 185 | 17 years ago | Teddy Hogeborn | * .bzr-builddeb/default.conf: New.
* Makefile (in |  |   |  | 
|  plugins.d | 13 | 17 years ago | Björn Påhlsson | Added following support:
Pluginbased client handle |  |   |  | 
|  .bzrignore | 223 | 17 years ago | Teddy Hogeborn | * .bzrignore (plugins.d/askpass-fifo): Added.
* M | 206 bytes |   |   | 
|  clients.conf | 257 | 16 years ago | Teddy Hogeborn | Change the default value of the "checker" option c | 2.4 KB |   |   | 
|  common.ent | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 94 bytes |   |   | 
|  COPYING | 24.1.51 | 17 years ago | Björn Påhlsson | Added configuration files support for mandos-clien | 34.2 KB |   |   | 
|  default-mandos | 185 | 17 years ago | Teddy Hogeborn | * .bzr-builddeb/default.conf: New.
* Makefile (in | 174 bytes |   |   | 
|  init.d-mandos | 369 | 16 years ago | Teddy Hogeborn | * init.d-mandos (Required-Start, Required-Stop): B | 4.1 KB |   |   | 
|  initramfs-tools-hook | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 4.5 KB |   |   | 
|  initramfs-tools-hook-conf | 237.2.19 | 16 years ago | Teddy Hogeborn | * initramfs-tools-hook-conf: Security bug fix: Add | 407 bytes |   |   | 
|  initramfs-tools-script | 369 | 16 years ago | Teddy Hogeborn | * init.d-mandos (Required-Start, Required-Stop): B | 3.6 KB |   |   | 
|  INSTALL | 319 | 16 years ago | Teddy Hogeborn | * INSTALL: Changed "Python 2.4" to "Python 2.5".
* | 4.8 KB |   |   | 
|  legalnotice.xml | 174 | 17 years ago | Teddy Hogeborn | * legalnotice.xml: Copy DocBook 4.4-formatted text | 1 KB |   |   | 
|  Makefile | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 11.8 KB |   |   | 
|  mandos | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 68 KB |   |   | 
|  mandos-clients.conf.xml | 370 | 16 years ago | Teddy Hogeborn | * debian/control (Standards-Version): Updated to " | 13.7 KB |   |   | 
|  mandos-ctl | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 7.6 KB |   |   | 
|  mandos-keygen | 393 | 16 years ago | Teddy Hogeborn | * mandos-keygen (keygen): Warn about long key gene | 9.4 KB |   |   | 
|  mandos-keygen.xml | 246 | 16 years ago | Teddy Hogeborn | * README: Update copyright year; add "2009".
* deb | 14.2 KB |   |   | 
|  mandos-options.xml | 314 | 16 years ago | Teddy Hogeborn | Support not using IPv6 in server:
* mandos (Avahi | 3.6 KB |   |   | 
|  mandos.conf | 314 | 16 years ago | Teddy Hogeborn | Support not using IPv6 in server:
* mandos (Avahi | 1.2 KB |   |   | 
|  mandos.conf.xml | 323 | 16 years ago | Teddy Hogeborn | * initramfs-tools-hook: Add missing terminating `" | 7.6 KB |   |   | 
|  mandos.lsm | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 908 bytes |   |   | 
|  mandos.xml | 370 | 16 years ago | Teddy Hogeborn | * debian/control (Standards-Version): Updated to " | 20.8 KB |   |   | 
|  NEWS | 392 | 16 years ago | Teddy Hogeborn | Merge from release branch. | 4.6 KB |   |   | 
|  overview.xml | 183 | 17 years ago | Teddy Hogeborn | * Makefile (install-client-nokey): Do "&&" instead | 926 bytes |   |   | 
|  plugin-runner.c | 394 | 16 years ago | Teddy Hogeborn | Convert some programs to use the exit codes from < | 32.3 KB |   |   | 
|  plugin-runner.conf | 342 | 16 years ago | Teddy Hogeborn | * initramfs-tools-hook: Bug fix: Add "--userid" an | 380 bytes |   |   | 
|  plugin-runner.xml | 277 | 16 years ago | Teddy Hogeborn | * debian/mandos-client.lintian-overrides: Remove o | 20.4 KB |   |   | 
|  README | 321 | 16 years ago | Teddy Hogeborn | * README (The Plugin System): Improve wording. | 8.4 KB |   |   | 
|  TODO | 391 | 16 years ago | Teddy Hogeborn | * plugins.d/password-prompt.c: Use exit codes from | 3.7 KB |   |   |