Menu

#2698 cmpi-base: system name might have empty domainname

Function
closed-fixed
None
providers
5
2014-10-22
2013-10-31
No

OSBase_Common.c:_init_system_name() takes insufficient caution to create a fully-qualified domain name for the system. If /bin/dnsdomainname returns nothing, no further checks are done.

Attached is a patch to fall back to /bin/domainname if /bin/dnsdomainname returns error or an empty string.

1 Attachments

Discussion

  • Dave Heller

    Dave Heller - 2013-11-16

    I noticed that on redhat distros the domainname command might return "(none)", so I added a simple check for that.

    Thanks again, Klaus!

    Committed to git master for cmpi-base 1.6.3 as [3f41cf]

     

    Related

    Commit: [3f41cf]

  • Dave Heller

    Dave Heller - 2013-11-16
    • status: open --> pending-fixed
     
  • Dave Heller

    Dave Heller - 2014-10-22
    • status: pending-fixed --> closed-fixed
    • assigned_to: Dave Heller
     

Log in to post a comment.