Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-754

Facter::Core::Execution::Posix.which(bin) method will return a directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: FACT 2.3.0
    • Fix Version/s: None
    • Component/s: Community
    • Labels:
      None
    • Template:

      Description

      If a directory is found on the PATH before the actual executable being searched for then Facter::Core::Execution::Posix.which(bin) will return the directory which is not a valid executable.

      An example is if /etc is prefixed to the PATH on RHEL/Centos. /etc/blkid is returned instead of /sbin/blkid when evaluating the partitions fact.

        Attachments

          Activity

            People

            Assignee:
            eric.sorenson Eric Sorenson
            Reporter:
            dbschofield Ben Schofield
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support