scp: Do not allow newlines in pushed files names
When pushing files or directories, encode the newlines contained in the
names as the string "\\n". This way the user cannot inject protocol
messages through the file name.
Signed-off-by: Anderson Toshiyuki Sasaki <firstname.lastname@example.org>
Reviewed-by: Andreas Schneider <email@example.com>
Reviewed-by: Jakub Jelen <firstname.lastname@example.org>
(cherry picked from commit bab7ba01463428c13f2a901c8ec2a3ab6005ef8a)