Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5034

vfs.file.exists may return 0 if file actually exists

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.0
    • 1.8.14rc1, 2.1.0
    • Agent (G)
    • None

      We check if files exists by using a stat() call. If that call fails we return 0 (file does not exist) while there might be other reasons for failure, e. g.:

      • checking a file over 2 GB on a system without large file support
      • permissions problem
      • out of memory
      • etc.

      I think if stat() fails for any other reason than ENOENT (file does not exist) we should return ZBX_NOTSUPPORTED.

            Unassigned Unassigned
            dimir dimir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: