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

(deprecated) sosreport binary has zero return value

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • CentOS Stream 8, CentOS Stream 9
    • sos
    • None
    • No
    • Low
    • rhel-sst-cee-supportability
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

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

      Running sosreport does not generate a sosreport, neither it fails.

      What is the impact of this issue to you?

      Automated executions of `sosreport` would get confused outcome.

      Please provide the package NVR for which the bug is seen:

      sos-4.9.2

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. sosreport; echo $?

      Expected results

      return value !=0

      Actual results

      return value is 0

      Trivial fix:

      {nocode}
      — /usr/sbin/sosreport.orig 2025-06-05 08:29:41.842679291 +0200
      +++ /usr/sbin/sosreport 2025-06-05 08:30:00.077805276 +0200
      @@ -1,5 +1,6 @@
      #!/usr/bin/python3 -s
      msg = ("sosreport binary is deprecated, use 'sos report' instead")
      print(msg)
      +exit(1)

      # vim:ts=4 et sw=4{nocode}

      Kudos to egolov@redhat.com for finding it.

              rhn-support-jjansky Jan Jansky
              rhn-support-pmoravec Pavel Moravec
              se cee-supportability se cee-supportability
              Daniel Zalezak Daniel Zalezak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: