Changeset 374


Ignore:
Timestamp:
Nov 1, 2011, 9:53:54 PM (13 years ago)
Author:
katerina
Message:

Patch for ticket #255 (intruder on server). Also disable setting prelink/ps path with --disable-shellexpand.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_prelink.c

    r248 r374  
    4848      SL_RETURN((-1), _("sh_prelink_set_path"));
    4949    }
    50 
     50#ifdef SH_EVAL_SHELL
    5151  prelink_path = sh_util_strdup(str);
    52 
    5352  SL_RETURN(0, _("sh_prelink_set_path"));
     53#else
     54  prelink_path = NULL;
     55  SL_RETURN((-1), _("sh_prelink_set_path"));
     56#endif
    5457}
    5558
  • trunk/src/sh_processcheck.c

    r362 r374  
    522522  if (sh_prochk_pspath)
    523523    SH_FREE(sh_prochk_pspath);
     524#ifdef SH_EVAL_SHELL
    524525  sh_prochk_pspath = sh_util_strdup (str);
    525 
    526526  SL_RETURN((0), _("sh_prochk_set_pspath"));
    527 
     527#else
     528  sh_prochk_pspath = NULL;
     529  SL_RETURN((-1), _("sh_prochk_set_pspath"));
     530#endif
    528531}
    529532
     
    536539  if (sh_prochk_psarg)
    537540    SH_FREE(sh_prochk_psarg);
     541#ifdef SH_EVAL_SHELL
    538542  sh_prochk_psarg = sh_util_strdup (str);
    539 
    540543  SL_RETURN((0), _("sh_prochk_set_psarg"));
    541 
     544#else
     545  sh_prochk_psarg = NULL;
     546  SL_RETURN((-1), _("sh_prochk_set_psarg"));
     547#endif
    542548}
    543549
Note: See TracChangeset for help on using the changeset viewer.