From 5f8bab4648d5c9f1513711a17633255f8601cf2e Mon Sep 17 00:00:00 2001 From: Cristian Canedo Date: Mon, 14 Feb 2022 20:23:56 -0500 Subject: Allow the option of parsing multiple post-connection commands. (#125) * Allow the option of parsing multiple post-connection commands. * Initial change for multiple commands via stdin * Use MSG_MAX as the max length of additional commands * Include + 1 to MSG_MAX to account for newline characters * Rework loop to process commands to avoid seg fault, use strnlen * Remove swap file * Restore previous formatting, restore man description for -x for now * Enable additional commands via both stdin and option argument * Move misplaced malloc check to where it belongs * Simplify logic to read commands from stdin * Retain functionality to accept server command as option argument * Maintain same functionality as before when sending inic --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index b1c04eb..fbd9d52 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,8 @@ kirc *.a *.o *.txt +tags +*.out +*.log +*.diff +.*.swp -- cgit v1.2.3