Comment out some temp code.
authorMilan Broz <gmazyland@gmail.com>
Wed, 23 May 2012 07:50:34 +0000 (09:50 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 12 Jun 2012 11:24:39 +0000 (13:24 +0200)
src/crypt_reencrypt.c

index 19177f8..3cb5c63 100644 (file)
@@ -669,12 +669,12 @@ static int initialize_context(const char *device)
 
        if (!(rnc.device = strndup(device, PATH_MAX)))
                return -ENOMEM;
-
+/*
        if (opt_new_file && !create_uuid()) {
                log_err("Cannot create fake header.\n");
                return -EINVAL;
        }
-
+*/
        if (initialize_uuid()) {
                log_err("No header found on device.\n");
                return -EINVAL;
@@ -859,7 +859,7 @@ int main(int argc, const char **argv)
                usage(popt_context, EXIT_FAILURE, _("Only one of --use-[u]random options is allowed."),
                      poptGetInvocationName(popt_context));
 
-       if (opt_new || !opt_new_file)
+       if (opt_new && !opt_new_file)
                usage(popt_context, EXIT_FAILURE, _("You have to use -f with -N."),
                      poptGetInvocationName(popt_context));