From 72d27c6a03e5440b978a4b10700d792c895697da Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 21 Jul 2010 14:25:30 +0200 Subject: [PATCH] Allow for spaces to be escaped in exec program. Closes #93 --- src/main/exec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/exec.c b/src/main/exec.c index 1efee5f..44dd9ae 100644 --- a/src/main/exec.c +++ b/src/main/exec.c @@ -175,6 +175,10 @@ int radius_exec_program(const char *cmd, REQUEST *request, } break; + case '\\': + if (from[1] == ' ') from++; + /* FALL-THROUGH */ + default: *(to++) = *(from++); } -- 2.1.4