Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-261

Windows.pm filesystem_entry_exists() subroutine may return true even if output contains "file not found"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.2
    • vcld (backend)
    • None

    Description

      Windows.pm filesystem_entry_exists() subroutine may return true even if output contains "file not found". This occurs because the exit status of the dir command used to tell if the file exists may be set to 0 if a known Perl bug occurred where the exit status was -1.

      The checking can be rearranged to first check the output from the dir command instead of the exit status. If it contains "file not found", return 0.

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: