Mercurial > pkg
comparison src/hg-wrapper.c @ 20:c75924bd38e3
fix security hole relating to path for package user.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 10 Jan 2013 04:25:17 +0000 |
parents | cd47c42f1d0a |
children | 5caff062fd36 |
comparison
equal
deleted
inserted
replaced
19:4fbe69d24a9c | 20:c75924bd38e3 |
---|---|
1 #include <pipeline.h> | 1 #include <pipeline.h> |
2 #include <unistd.h> | 2 #include <unistd.h> |
3 | 3 |
4 main( int argc, char ** argv){ | 4 main( int argc, char ** argv){ |
5 pipecmd* p = pipecmd_new("hg"); | 5 pipecmd* p = |
6 pipecmd_new("/pkg/hg-committer/hg"); | |
6 | 7 |
7 int i; | 8 int i; |
8 for(i = 1; i < argc; i++){ | 9 for(i = 1; i < argc; i++){ |
9 pipecmd_arg(p, argv[i]); | 10 pipecmd_arg(p, argv[i]); |
10 } | 11 } |