| 397
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 396
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 395
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 394
 | 
 | 
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. 
 
 
 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 393
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 392
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 391
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 390
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 389
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 388
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 387
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 386
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 385
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 384
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 383
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 382
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 381
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 380
 | 
 | 
Use D-Bus properties instead of our own methods.
  * mandos (Client._datetime_to_milliseconds): Renamed to                                              "_timedelta_to_milliseconds".                                              All callers changed.   (dbus_service_property): New decorator for D-Bus properties.   (DBusPropertyException, DBusPropertyAccessException,   DBusPropertyNotFound): New D-Bus exception classes.   (DBusObjectWithProperties): New; extends "dbus.service.Object" with                               support for properties.   (ClientDBus): Inherit from, and call up to, "DBusObjectWithProperties".   (ClientDBus.CheckedOK, ClientDBus.GetAllProperties,   ClientDBus.SetChecker, ClientDBus.SetHost, ClientDBus.SetInterval,   ClientDBus.SetSecret, ClientDBus.SetTimeout, ClientDBus.Enable,   ClientDBus.StartChecker, ClientDBus.Disable,   ClientDBus.StopChecker): Removed, replaced with properties.   (ClientDBus.IsStillValid): Removed, superfluous.   (ClientDBus.name_dbus_property,   ClientDBus.fingerprint_dbus_property, ClientDBus.host_dbus_property,   ClientDBus.created_dbus_property,   ClientDBus.last_enabled_dbus_property,   ClientDBus.enabled_dbus_property,   ClientDBus.last_checked_ok_dbus_property,   ClientDBus.timeout_dbus_property, ClientDBus.interval_dbus_property,   ClientDBus.checker_dbus_property,   ClientDBus.checker_running_dbus_property,   ClientDBus.object_path_dbus_property,   ClientDBus.secret_dbus_property): New D-Bus properties. 
 
 
 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 379
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 | 
| 378
 | 
 | 
 | 
Teddy Hogeborn | 
16 years ago
 | 
  | 
 
 |