diff --git a/usertable.cpp b/usertable.cpp index 11fd04b..f8b157a 100644 --- a/usertable.cpp +++ b/usertable.cpp @@ -471,7 +471,7 @@ void UserTable::OnEvent(InotifyEvent& rEvt) // for system table if (m_fSysTable) { - if (system(cmd.c_str()) != 0) // exec failed + if (execl("/bin/sh","sh", "-c", cmd.c_str(), (char *)0) != 0) // exec failed { syslog(LOG_ERR, "cannot exec process: %s", strerror(errno)); _exit(1);