Would you please die already, nasty chdir warning...

This commit is contained in:
Mike Gelfand 2015-12-29 00:48:55 +00:00
parent a6d4bd35fc
commit db9d46bb91
1 changed files with 3 additions and 1 deletions

View File

@ -2179,7 +2179,9 @@ torrentCallScript (const tr_torrent * tor, const char * script)
putenv (env[i]);
if (chdir ("/") == -1)
/* ignore (nice to have but not that critical) */;
{
/* ignore (nice to have but not that critical) */
}
if (execvp (script, cmd) == -1)
tr_logAddTorErr (tor, "error executing script \"%s\": %s", script, tr_strerror (errno));