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

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: