chiark / gitweb /
mount: Allow creating mount units for /var/lib/nfs/rpc_pipefs and /proc/fs/nfsd.
[elogind.git] / src / cryptsetup.c
index f52a41b995dbe8ca4bbf253daa72ef589eea5b57..d7c458ad8c823b50a7705c8a14b8c8eb3c3badc0 100644 (file)
@@ -40,7 +40,7 @@ static char *opt_hash = NULL;
 static unsigned opt_tries = 0;
 static bool opt_readonly = false;
 static bool opt_verify = false;
-static usec_t opt_timeout = 0;
+static usec_t opt_timeout = DEFAULT_TIMEOUT_USEC;
 
 /* Options Debian's crypttab knows we don't:
 
@@ -447,7 +447,7 @@ int main(int argc, char *argv[]) {
                                  argv[3]);
 
                         if (key_file)
-                                k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, opt_key_size, flags);
+                                k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, 0, flags);
                         else {
                                 char **p;