diff src/hg-wrapper.c @ 16:cd47c42f1d0a

reorganizing.
author Robert McIntyre <rlm@mit.edu>
date Wed, 09 Jan 2013 11:38:31 +0000
parents defaults/hg-wrapper.c@dcdeabe9e903
children c75924bd38e3
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/hg-wrapper.c	Wed Jan 09 11:38:31 2013 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +#include <pipeline.h>
     1.5 +#include <unistd.h>
     1.6 +
     1.7 +main( int argc, char ** argv){
     1.8 +  pipecmd* p = pipecmd_new("hg");
     1.9 +
    1.10 +  int i;
    1.11 +  for(i = 1; i < argc; i++){
    1.12 +    pipecmd_arg(p, argv[i]);
    1.13 +  }
    1.14 +
    1.15 +  setreuid(geteuid(), geteuid());
    1.16 +  setregid(getegid(), getegid());
    1.17 +
    1.18 +  pipecmd_exec(p);
    1.19 +}