summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-02-23 15:42:01 +0200
committerMavridis Philippe <[email protected]>2021-02-23 15:42:01 +0200
commit29887ca19713b891800797066c97adf4777ee923 (patch)
tree6be9b73208bf6eff59be253f83699aa6cb858e1d
parentd7f74c30f3433d999ea701e5cd547a1d3630f073 (diff)
downloadklamav-29887ca19713b891800797066c97adf4777ee923.tar.gz
klamav-29887ca19713b891800797066c97adf4777ee923.zip
Scheduler: Added support for home directories not in /home
This relates to issue #22. Signed-off-by: Mavridis Philippe <[email protected]>
-rw-r--r--src/schedule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schedule.cpp b/src/schedule.cpp
index 27acc0b..7c38efc 100644
--- a/src/schedule.cpp
+++ b/src/schedule.cpp
@@ -365,7 +365,7 @@ TQString Schedule::createScanScript()
ts << "export HOSTNAME" << "\n";
ts << TQString("PATH=%1").arg(TQString(getenv("PATH"))) << "\n";
ts << "export PATH" << "\n";
- ts << "DCOPSERVER=`cat /home/${USER}/.DCOPserver_${HOSTNAME}_:0 | grep local`" << "\n";
+ ts << "DCOPSERVER=`cat ${HOME}/.DCOPserver_${HOSTNAME}_:0 | grep local`" << "\n";
ts << "export DCOPSERVER" << "\n";
ts << "DISPLAY=:0" << "\n";
ts << "export DISPLAY" << "\n";