/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

  • Committer: Teddy Hogeborn
  • Date: 2017-02-21 21:42:08 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 358.
  • Revision ID: teddy@recompile.se-20170221214208-09wu1p4l2hjhqfoj
Use "read -r" in shell scripts to avoid backslash escapes

* initramfs-tools-hook: Use "read -r" to read filenames from network
  hook given the "files" argument.
* initramfs-tools-script: Use "read -e" when parsing
  "/conf/conf.d/cryptroot".
* mandos-keygen (keygen): Use "read -r" when reading passphrase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
# Mandos Monitor - Control and monitor the Mandos server
5
5
#
6
 
# Copyright © 2008-2017 Teddy Hogeborn
7
 
# Copyright © 2008-2017 Björn Påhlsson
 
6
# Copyright © 2008-2016 Teddy Hogeborn
 
7
# Copyright © 2008-2016 Björn Påhlsson
8
8
#
9
9
# This program is free software: you can redistribute it and/or modify
10
10
# it under the terms of the GNU General Public License as published by
38
38
import re
39
39
import os
40
40
import collections
 
41
import doctest
41
42
import json
42
43
 
43
44
import dbus
74
75
server_path = "/"
75
76
server_interface = domain + ".Mandos"
76
77
client_interface = domain + ".Mandos.Client"
77
 
version = "1.7.15"
 
78
version = "1.7.14"
78
79
 
79
80
 
80
81
try:
344
345
        parser.error("--all requires an action.")
345
346
 
346
347
    if options.check:
347
 
        import doctest
348
348
        fail_count, test_count = doctest.testmod()
349
349
        sys.exit(os.EX_OK if fail_count == 0 else 1)
350
350