First, there is no option named of X509_OPTION. It was presumably
changed during development to AUTH_CERT_OPTION. This commit fixes
the name in the !WITH_CRYPTO branch.
Similarly, '}' got moved into the WITH_CRYPTO branch, but not into
else branch, resulting in tons of errors if fscrypt is disabled.
This commit pulls it back out of both branches.
Fixes: a739b59e ("mkfs.ubifs: Add authentication support")
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
case AUTH_CERT_OPTION:
c->auth_cert_filename = xstrdup(optarg);
break;
- }
#else
case 'C':
case HASH_ALGO_OPTION:
case AUTH_KEY_OPTION:
- case X509_OPTION:
+ case AUTH_CERT_OPTION:
return err_msg("mkfs.ubifs was built without crypto support.");
#endif
+ }
}
if (optind != argc && !output)