Ptachirana skripta zbog vlasništva nad last-version-check.txt
[clamav-unofficial-sigs.git] / clamav-unofficial-sigs
index aa70db1..28c39e2 100755 (executable)
@@ -3667,6 +3667,9 @@ if [ "$allow_update_checks" != "no" ] ; then
        time_interval="$((current_time - last_version_check))"
        if [ "$time_interval" -ge $((update_check_interval - 600)) ] ; then
          echo "$current_time" > "${work_dir_work_configs}/last-version-check.txt"
+               if xshok_is_root ; then
+                       perms chown -f "${clam_user}:${clam_group}" "${work_dir_work_configs}/last-version-check.txt"
+               fi              
                check_new_version
        fi