view src/hg-wrapper.c @ 21:d46aeb3166d0

going to work on file permissions/ownership since mercurial doesn't track them.
author Robert McIntyre <rlm@mit.edu>
date Thu, 10 Jan 2013 07:02:49 +0000
parents c75924bd38e3
children 5caff062fd36
line wrap: on
line source
1 #include <pipeline.h>
2 #include <unistd.h>
4 main( int argc, char ** argv){
5 pipecmd* p =
6 pipecmd_new("/pkg/hg-committer/hg");
8 int i;
9 for(i = 1; i < argc; i++){
10 pipecmd_arg(p, argv[i]);
11 }
13 setreuid(geteuid(), geteuid());
14 setregid(getegid(), getegid());
16 pipecmd_exec(p);
17 }