Skip to content

Commit

Permalink
Merge pull request ar-#56 of original repository
Browse files Browse the repository at this point in the history
  • Loading branch information
avcbvamorec committed Mar 17, 2023
1 parent 9f43f76 commit 4ee8241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usertable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ee8241

Please sign in to comment.