Mercurial > pkg
changeset 11:389f8678f1d8
add comments to hg-wrapper.cpp.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 09 Jan 2013 05:11:10 +0000 |
parents | bd465da5cd0f |
children | e056798af879 |
files | defaults/hg-wrapper.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/defaults/hg-wrapper.cpp Wed Jan 09 04:58:05 2013 +0000 1.2 +++ b/defaults/hg-wrapper.cpp Wed Jan 09 05:11:10 2013 +0000 1.3 @@ -4,10 +4,13 @@ 1.4 #include <unistd.h> 1.5 #include <boost/algorithm/string/join.hpp> 1.6 1.7 +/** This a simple wrapper script to call 1.8 + mercurial as a semi-privleged user. */ 1.9 + 1.10 main( int argc, char ** argv){ 1.11 std::vector<std::string> input(argv, argv+argc); 1.12 input[0] = std::string("hg"); 1.13 std::string command = boost::algorithm::join(input, " "); 1.14 - setreuid( geteuid(), geteuid() ); 1.15 + setreuid(geteuid(), geteuid()); 1.16 return system(command.c_str()); 1.17 }