Changeset c90500 in git


Ignore:
Timestamp:
Nov 20, 2012, 4:50:00 PM (11 years ago)
Author:
Zoltan Kovacs <kovzol@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
3e7db4d961b4509d248e12d8e96e2bed08d9cfe8
Parents:
cecef07e441bf8e0ac3da94431b1ca83e92e753f
Message:
Reverting 26c8e6010d08437813f7b3dcc02d4afa785e062d (Disallow "link" command when --no-shell is set on command line) and adding suggested change from Hans Schoenemann instead
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipid.cc

    rcecef0 rc90500  
    2929#include <Singular/ipid.h>
    3030#include <Singular/blackbox.h>
    31 #include "feOpt.h"
    3231
    3332#ifdef HAVE_DYNAMIC_LOADING
     
    153152    //the types with the standard init: set the struct to zero
    154153    case LINK_CMD:
    155       if (feOptValue(FE_OPT_NO_SHELL)) Werror("link data type is disallowed in restricted mode");
    156154      return (void*) omAlloc0Bin(sip_link_bin);
    157155    case RING_CMD:
  • Singular/links/silink.cc

    rcecef0 rc90500  
    3131#include <Singular/links/ssiLink.h>
    3232#include <Singular/links/pipeLink.h>
     33#include "feOpt.h"
    3334
    3435// #ifdef HAVE_DBM
     
    196197
    197198    if (l->m == NULL) slInit(l, ((char*)""));
     199
     200    if (feOptValue(FE_OPT_NO_SHELL)) {WerrorS("no links allowed");return TRUE;}
    198201
    199202    const char *c="_";;
Note: See TracChangeset for help on using the changeset viewer.