Ignore:
Timestamp:
2000-12-20T12:43:45+13:00 (24 years ago)
Author:
sjboddie
Message:

Tidied up a couple of things arrising from the recent changes to the
gsdl_system() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdltools.cpp

    r1817 r1818  
    130130      argv[0] = "sh";
    131131      argv[1] = "-c";
    132       argv[2] = cmd;
     132      argv[2] = cmd_c;
    133133      argv[3] = 0;
    134134      execv("/bin/sh", argv);
     
    144144bool perl_ok (ostream &logout) {
    145145#if defined(__WIN32__)
    146   text_t cmd = "perl -e \"exit 1\"";
     146  text_t cmd = "perl -e \"exit 0\"";
    147147#else
    148   text_t cmd = "perl -e \"'exit 1'\"";
     148  text_t cmd = "perl -e 'exit 0'";
    149149#endif;
    150150  int i = gsdl_system (cmd, true, logout);
    151   return (i == 1);
     151  return (i == 0);
    152152}
Note: See TracChangeset for help on using the changeset viewer.