From 1973233e530fbe49694cc26d5c351e7a11470fa2 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 6 May 2016 23:38:33 -0400 Subject: [PATCH] e4crypt: remove debugging code which broke the set_policy subcommand Also fixed some spelling typos in help messages. Signed-off-by: Theodore Ts'o --- misc/e4crypt.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/misc/e4crypt.c b/misc/e4crypt.c index ad95bd2d..1da25d85 100644 --- a/misc/e4crypt.c +++ b/misc/e4crypt.c @@ -726,9 +726,6 @@ static void do_set_policy(int argc, char **argv, const struct cmd_desc *cmd) exit(1); } - printf("arg %s\n", argv[optind]); - exit(0); - strcpy(saltbuf.key_ref_str, argv[optind]); if ((strlen(argv[optind]) != (EXT4_KEY_DESCRIPTOR_SIZE * 2)) || hex2byte(argv[optind], (EXT4_KEY_DESCRIPTOR_SIZE * 2), @@ -789,9 +786,9 @@ static void do_get_policy(int argc, char **argv, const struct cmd_desc *cmd) exit(0); } -#define new_session_desc "given the invoking process a new session keyring" +#define new_session_desc "give the invoking process a new session keyring" #define new_session_help \ -"e4crypt new_sessoin\n\n" \ +"e4crypt new_session\n\n" \ "Give the invoking process (typically a shell) a new session keyring,\n" \ "discarding its old session keyring.\n" @@ -856,7 +853,7 @@ static void do_help(int argc, char **argv, continue; printf(" %-20s %s\n", p->cmd_name, p->cmd_desc); } - printf("\nTo get more information on a commnd, " + printf("\nTo get more information on a command, " "type 'e4crypt help cmd'\n"); exit(0); } -- 2.11.0