Allow for spaces to be escaped in exec program.
authorAlan T. DeKok <aland@freeradius.org>
Wed, 21 Jul 2010 12:25:30 +0000 (14:25 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Jul 2010 13:42:14 +0000 (15:42 +0200)
Closes #93

src/main/exec.c

index 1efee5f..44dd9ae 100644 (file)
@@ -175,6 +175,10 @@ int radius_exec_program(const char *cmd, REQUEST *request,
                                }
                                break;
 
+                       case '\\':
+                               if (from[1] == ' ') from++;
+                               /* FALL-THROUGH */
+
                        default:
                                *(to++) = *(from++);
                        }