diff --git a/rdo.c b/rdo.c index 8bbb9e4..0937f82 100644 --- a/rdo.c +++ b/rdo.c @@ -33,19 +33,16 @@ void getconf(FILE* fp, const char* entry, char* result, size_t len_result) { errx(1, "Could not get '%s' entry in config", entry); } -int runprog(int argc, char** argv) { - for(int i=0; isp_pwdp, hashed_pw) == 0) { setsession(getppid(), ts_ttl); - return runprog(argc, argv); + runprog(&argv[1]); } usleep(sleep_ms);