Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-39142

RHEL-10: hwloc-gather-topology - : line 28: unalias: ls: not found error

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • rhel-10.0.beta
    • rhel-10.0
    • hwloc
    • None
    • hwloc-2.11.1-1.el10
    • None
    • Moderate
    • rhel-arch-hw
    • ssg_platform_enablement
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      $ hwloc-gather-topology /tmp/topology
      /usr/bin/hwloc-gather-topology: line 28: unalias: ls: not found

       

      Please provide the package NVR for which bug is seen:

      hwloc-2.10.0-3.el10

      How reproducible:

      Always:

      hwloc-gather-topology /tmp/topology

      If there is no alias for 'ls', this code results in error:

      ======================================================

      1. don't let ls append special chars after symlinks etc
        unalias ls
        ======================================================
         

        The fix is easy - check if an alias exists:

         
        ======================================================

      if alias ls 1>/dev/null 2>&1; then
         unalias ls
      fi
      ======================================================
       
      I have proposed the solution to hwloc's author, Brice Goglin <Brice.Goglin@inria.fr>, and he will include it in the next upstream release. Could you please include in downstream as well? 
       
      Thanks a lot
      Jirka

              jcajka@redhat.com Jakub Cajka (Inactive)
              jhladky1@redhat.com Jiri Hladky
              Jakub Cajka Jakub Cajka (Inactive)
              Jeffrey Bastian Jeffrey Bastian
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: