1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(trunk libT) #3571 "Torrent done script clears important env vars" -- fixed.

This commit is contained in:
Charles Kerr 2010-09-21 16:26:48 +00:00
parent fc9c880ed9
commit 65b4e28c60
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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 ) );