Browse code

clamd/session.c: respect TemporaryDirector in cli_gentempfd()

git-svn: trunk@4997

Tomasz Kojm authored on 2009/04/01 21:01:00
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Apr  1 14:00:35 CEST 2009 (tk)
2
+----------------------------------
3
+ * clamd/session.c: respect TemporaryDirector in cli_gentempfd()
4
+
1 5
 Wed Apr  1 13:14:32 EEST 2009 (edwin)
2 6
 -------------------------------------
3 7
  * libclamav/Makefile.am, libclamav/Makefile.in: fix dependency bug
... ...
@@ -505,7 +505,7 @@ int execute_or_dispatch_command(client_conn_t *conn, enum commands cmd, const ch
505 505
 	    }
506 506
 	case COMMAND_INSTREAM:
507 507
 	    {
508
-		int rc = cli_gentempfd(NULL, &conn->filename, &conn->scanfd);
508
+		int rc = cli_gentempfd(optget(conn->opts, "TemporaryDirectory")->strarg, &conn->filename, &conn->scanfd);
509 509
 		if (rc != CL_SUCCESS)
510 510
 		    return rc;
511 511
 		conn->quota = optget(conn->opts, "StreamMaxLength")->numarg;