From: Charles Kerr Date: Tue, 21 Sep 2010 16:26:48 +0000 (+0000) Subject: (trunk libT) #3571 "Torrent done script clears important env vars" -- fixed. X-Git-Tag: 2.10~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65b4e28c601def6112afd28ec4b6cdbf1d064f1d;p=transmission (trunk libT) #3571 "Torrent done script clears important env vars" -- fixed. --- diff --git a/configure.ac b/configure.ac index 9af9a2928..98adeae72 100644 --- a/configure.ac +++ b/configure.ac @@ -104,7 +104,7 @@ fi AC_HEADER_STDC AC_HEADER_TIME -AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign clearenv]) +AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign]) AC_PROG_INSTALL AC_PROG_MAKE_SET ACX_PTHREAD diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 49f63bda2..fe6955ba4 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1829,10 +1829,6 @@ torrentCallScript( tr_torrent * tor, const char * script ) char buf[128]; const time_t now = tr_time( ); -#ifdef HAVE_CLEARENV - clearenv( ); -#endif - tr_setenv( "TR_APP_VERSION", SHORT_VERSION_STRING, 1 ); tr_snprintf( buf, sizeof( buf ), "%d", tr_torrentId( tor ) );