We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742c66f commit 95998e3Copy full SHA for 95998e3
1 file changed
plugins/generic/misc.py
@@ -5,6 +5,7 @@
5
See the file 'doc/COPYING' for copying permission
6
"""
7
8
+import ntpath
9
import re
10
11
from lib.core.common import Backend
@@ -36,6 +37,11 @@ def __init__(self):
36
37
pass
38
39
def getRemoteTempPath(self):
40
+ if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
41
+ _ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
42
+ if _:
43
+ conf.tmpPath = ntpath.dirname(_)
44
+
45
if not conf.tmpPath:
46
if Backend.isOs(OS.WINDOWS):
47
if conf.direct:
0 commit comments