Allow for spaces to be escaped in exec program.
[freeradius.git] / 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++);
                        }