changeset 13:dcdeabe9e903

yay.
author Robert McIntyre <rlm@mit.edu>
date Wed, 09 Jan 2013 07:31:19 +0000
parents e056798af879
children ac1ca422bd54
files defaults/hg-wrapper.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/defaults/hg-wrapper.c	Wed Jan 09 07:09:37 2013 +0000
     1.2 +++ b/defaults/hg-wrapper.c	Wed Jan 09 07:31:19 2013 +0000
     1.3 @@ -1,14 +1,16 @@
     1.4  #include <pipeline.h>
     1.5 -
     1.6 +#include <unistd.h>
     1.7  
     1.8  main( int argc, char ** argv){
     1.9    pipecmd* p = pipecmd_new("hg");
    1.10 -  
    1.11 +
    1.12    int i;
    1.13    for(i = 1; i < argc; i++){
    1.14      pipecmd_arg(p, argv[i]);
    1.15    }
    1.16  
    1.17 +  setreuid(geteuid(), geteuid());
    1.18 +  setregid(getegid(), getegid());
    1.19 +
    1.20    pipecmd_exec(p);
    1.21 -
    1.22  }