/mandos/release

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

« back to all changes in this revision

Viewing changes to mandos-ctl

* Makefile (BROKEN_PIE): Add comment.
* debian/rules (BROKEN_PIE): - '' -
* plugin-runner.c: Really always use <sysexits.h> exit codes.
* plugins.d/mandos-client.c: Use <sysexits.h> exit codes.
  (start_mandos_communication): Make sure errno is always set when
                                returning -1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
                  help="Start checker for client")
129
129
parser.add_option("--stop-checker", action="store_true",
130
130
                  help="Stop checker for client")
131
 
parser.add_option("-V", "--is-enabled", action="store_true",
132
 
                  help="Check if client is enabled")
 
131
parser.add_option("-V", "--is-valid", action="store_true",
 
132
                  help="Check if client is still valid")
133
133
parser.add_option("-r", "--remove", action="store_true",
134
134
                  help="Remove client")
135
135
parser.add_option("-c", "--checker", type="string",
178
178
        client.StartChecker(dbus_interface=client_interface)
179
179
    if options.stop_checker:
180
180
        client.StopChecker(dbus_interface=client_interface)
181
 
    if options.is_enabled:
 
181
    if options.is_valid:
182
182
        sys.exit(0 if client.Get(client_interface,
183
183
                                 u"enabled",
184
184
                                 dbus_interface=dbus.PROPERTIES_IFACE)