]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #4510 from keszybz/tree-wide-cleanups
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Nov 2016 19:59:20 +0000 (13:59 -0600)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2016 19:59:20 +0000 (13:59 -0600)
Tree wide cleanups

15 files changed:
1  2 
src/basic/mount-util.c
src/basic/path-util.c
src/core/dbus-unit.c
src/core/device.c
src/core/execute.c
src/core/manager.c
src/core/service.c
src/core/unit.c
src/cryptsetup/cryptsetup.c
src/hwdb/hwdb.c
src/journal/journald-server.c
src/nspawn/nspawn-mount.c
src/nspawn/nspawn.c
src/shared/install.c
src/systemctl/systemctl.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc src/core/unit.c
Simple merge
index ff5a3f36fb24862aaf9fed7274cafe6297d82c00,1e17fbbb0341546295d9ff528c64a8c2c9b98843..01e7ee9973e605dd3c537865196d53228bea0ef4
@@@ -180,20 -177,13 +178,21 @@@ static int parse_one_option(const char 
          } else if (streq(option, "tcrypt-system")) {
                  arg_type = CRYPT_TCRYPT;
                  arg_tcrypt_system = true;
 +        } else if (streq(option, "tcrypt-veracrypt")) {
 +#ifdef CRYPT_TCRYPT_VERA_MODES
 +                arg_type = CRYPT_TCRYPT;
 +                arg_tcrypt_veracrypt = true;
 +#else
 +                log_error("This version of cryptsetup does not support tcrypt-veracrypt; refusing.");
 +                return -EINVAL;
 +#endif
          } else if (STR_IN_SET(option, "plain", "swap", "tmp"))
                  arg_type = CRYPT_PLAIN;
-         else if (startswith(option, "timeout=")) {
+         else if ((val = startswith(option, "timeout="))) {
  
-                 if (parse_sec(option+8, &arg_timeout) < 0) {
-                         log_error("timeout= parse failure, ignoring.");
+                 r = parse_sec(val, &arg_timeout);
+                 if (r < 0) {
+                         log_error_errno(r, "Failed to parse %s, ignoring: %m", option);
                          return 0;
                  }
  
diff --cc src/hwdb/hwdb.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge