annotate 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
rev   line source
rlm@12 1 #include <pipeline.h>
rlm@13 2 #include <unistd.h>
rlm@12 3
rlm@12 4 main( int argc, char ** argv){
rlm@12 5 pipecmd* p = pipecmd_new("hg");
rlm@13 6
rlm@12 7 int i;
rlm@12 8 for(i = 1; i < argc; i++){
rlm@12 9 pipecmd_arg(p, argv[i]);
rlm@12 10 }
rlm@12 11
rlm@13 12 setreuid(geteuid(), geteuid());
rlm@13 13 setregid(getegid(), getegid());
rlm@13 14
rlm@12 15 pipecmd_exec(p);
rlm@12 16 }