annotate defaults/hg-wrapper.cpp @ 10:bd465da5cd0f

remove USELESS code.
author Robert McIntyre <rlm@mit.edu>
date Wed, 09 Jan 2013 04:58:05 +0000
parents a0c0ccd22ca5
children 389f8678f1d8
rev   line source
rlm@9 1 #include <cstdlib>
rlm@9 2 #include <vector>
rlm@9 3 #include <string>
rlm@9 4 #include <unistd.h>
rlm@9 5 #include <boost/algorithm/string/join.hpp>
rlm@9 6
rlm@9 7 main( int argc, char ** argv){
rlm@9 8 std::vector<std::string> input(argv, argv+argc);
rlm@9 9 input[0] = std::string("hg");
rlm@9 10 std::string command = boost::algorithm::join(input, " ");
rlm@9 11 setreuid( geteuid(), geteuid() );
rlm@9 12 return system(command.c_str());
rlm@9 13 }