comparison 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
comparison
equal deleted inserted replaced
15:48c7c2099978 16:cd47c42f1d0a
1 #include <pipeline.h>
2 #include <unistd.h>
3
4 main( int argc, char ** argv){
5 pipecmd* p = pipecmd_new("hg");
6
7 int i;
8 for(i = 1; i < argc; i++){
9 pipecmd_arg(p, argv[i]);
10 }
11
12 setreuid(geteuid(), geteuid());
13 setregid(getegid(), getegid());
14
15 pipecmd_exec(p);
16 }