Changeset 76fd43 in git


Ignore:
Timestamp:
Nov 8, 2012, 12:12:13 PM (10 years ago)
Author:
Zoltán Kovács <zoltan@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
26c8e6010d08437813f7b3dcc02d4afa785e062d
Parents:
0158c8ef3c49736b2316c3c42da03591cb2eb901
git-author:
Zoltán Kovács <zoltan@geogebra.org>2012-11-08 12:12:13+01:00
git-committer:
Zoltán Kovács <zoltan@geogebra.org>2012-11-08 23:28:35+01:00
Message:
Adding new command line option --no-shell to prevent running escape shell commands
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r0158c8 r76fd43  
    336336    if(strcmp(sys_cmd,"sh")==0)
    337337    {
     338      if (feOptValue(FE_OPT_NO_SHELL)) {
     339       WerrorS("not allowed");
     340       return TRUE;
     341       }
    338342      res->rtyp=INT_CMD;
    339343      if (h==NULL) res->data = (void *)(long) system("sh");
  • Singular/feOptGen.cc

    r0158c8 r76fd43  
    33****************************************/
    44/*
    5 * ABSTRACT: Implementation of option buisness
     5* ABSTRACT: Implementation of option business
    66*/
    77
  • Singular/feOptTab.h

    r0158c8 r76fd43  
    130130   0,          "Suppress all output",                                  feOptBool,    0,      0},
    131131
     132  {"no-shell",          no_argument,        LONG_OPTION_RETURN,
     133   0,          "Disallow using shell escape commands",                 feOptBool,    0,      0},
     134
    132135  {"min-time",          required_argument,  LONG_OPTION_RETURN,
    133136  "SECS",     "Do not display times smaller than SECS (in seconds)",   feOptString, (void*) "0.5",  0},
Note: See TracChangeset for help on using the changeset viewer.