Ticket #133: vuurmuur-ruleset_c-nobash.patch

File vuurmuur-ruleset_c-nobash.patch, 787 bytes (added by hbeck, 10 years ago)
  • vuurmuur/vuurmuur/ruleset.c

    old new  
    384384    char        *ptr = NULL;
    385385    char        cmd[MAX_PIPE_COMMAND] = "";
    386386
    387     ruleset_writeprint(fd, "#!/bin/bash\n");
     387    ruleset_writeprint(fd, "#!/bin/sh\n");
    388388
    389389    for (d_node = ruleset->tc_rules.top; d_node; d_node = d_node->next) {
    390390        ptr = d_node->data;
     
    12201220    */
    12211221
    12221222    /* */
    1223     if(snprintf(cmd, sizeof(cmd), "/bin/bash %s 2>> %s", path_to_ruleset,
     1223    if(snprintf(cmd, sizeof(cmd), "/bin/sh %s 2>> %s", path_to_ruleset,
    12241224        path_to_resultfile) >= (int)sizeof(cmd))
    12251225    {
    12261226        (void)vrprint.error(-1, "Error", "command string overflow (in: %s:%d).", __FUNC__, __LINE__);