mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
Would you please die already, nasty chdir warning...
This commit is contained in:
parent
a6d4bd35fc
commit
db9d46bb91
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue