Ignore:
Timestamp:
Mar 16, 2011, 6:11:48 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4127 "Torrent complete script doesn't pass on the environment" -- fixed with patch from geirha.

The fix was to putenv() the new environment variables, then call execvp() instead of execve().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r12177 r12178  
    19511951        if( !fork( ) )
    19521952        {
    1953             execve( script, cmd, env );
     1953            for (i=0; env[i]; ++i)
     1954                putenv(env[i]);
     1955            execvp( script, cmd );
    19541956            _exit( 0 );
    19551957        }
Note: See TracChangeset for help on using the changeset viewer.