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

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.14rc1, 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: Agent (G)
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: