Mercurial > pkg
view src/hg-wrapper.c @ 36:d66d34065dd9 tip
better less.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 19 May 2013 14:40:32 -0400 |
parents | 5caff062fd36 |
children |
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/skel/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 }