Changeset 60


Ignore:
Timestamp:
Aug 20, 2007, 10:20:30 PM (18 years ago)
Author:
Yuri Dario
Message:

Use popen() for executing scripts, so .cmd/.exe/.sh scripts are supported. Fixes ticket:12 (and probably also ticket:26).

Location:
trunk/samba/source/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/lib/smbrun.c

    r39 r60  
    7474        }
    7575
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
    76109        /* in this method we will exec /bin/sh with the correct
    77110           arguments, after first setting stdout to point at the file */
     
    185218        exit(83);
    186219        return 1;
     220
     221
     222
    187223}
    188224
  • trunk/samba/source/lib/util_str.c

    r44 r60  
    26232623*******************************************************************/
    26242624
    2625 #define INCLUDE_LIST "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_/ \t.,"
     2625#define INCLUDE_LIST "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_/ \t.,"
    26262626#define INSIDE_DQUOTE_LIST "$`\n\"\\"
    26272627
Note: See TracChangeset for help on using the changeset viewer.