# HG changeset patch # User Robert McIntyre # Date 1357708270 0 # Node ID 389f8678f1d8cbfb67006fe3dfab022db93380c1 # Parent bd465da5cd0fb01fd697e37c6c6a8fd94180fe3e add comments to hg-wrapper.cpp. diff -r bd465da5cd0f -r 389f8678f1d8 defaults/hg-wrapper.cpp --- a/defaults/hg-wrapper.cpp Wed Jan 09 04:58:05 2013 +0000 +++ b/defaults/hg-wrapper.cpp Wed Jan 09 05:11:10 2013 +0000 @@ -4,10 +4,13 @@ #include #include +/** This a simple wrapper script to call + mercurial as a semi-privleged user. */ + main( int argc, char ** argv){ std::vector input(argv, argv+argc); input[0] = std::string("hg"); std::string command = boost::algorithm::join(input, " "); - setreuid( geteuid(), geteuid() ); + setreuid(geteuid(), geteuid()); return system(command.c_str()); }