diff options
author | Mavridis Philippe <[email protected]> | 2021-02-23 15:42:01 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-02-23 15:42:01 +0200 |
commit | 29887ca19713b891800797066c97adf4777ee923 (patch) | |
tree | 6be9b73208bf6eff59be253f83699aa6cb858e1d | |
parent | d7f74c30f3433d999ea701e5cd547a1d3630f073 (diff) | |
download | klamav-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.cpp | 2 |
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"; |