Commit 66380916 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-7993 file_key_management_filekey doesn't work as expected with FILE:

chomp the secret, as read from the file. remove trailing
CR and LF bytes.
parent a35b538b
......@@ -173,6 +173,7 @@ bool Parser::read_filekey(const char *filekey, char *secret)
my_close(f, MYF(MY_WME));
if (len <= 0)
return 1;
while (secret[len - 1] == '\r' || secret[len - 1] == '\n') len--;
secret[len]= '\0';
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment