Changeset 76fd43 in git


Ignore:
Timestamp:
Nov 8, 2012, 12:12:13 PM (12 years ago)
Author:
Zoltán Kovács <zoltan@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '79dfb9a6d258bfeb991428bdb25b8f55e9e809b2')
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.