http://defect.opensolaris.org/bz/show_bug.cgi?id=10817


Anurag S. Maskey <Anurag.Maskey at Sun.COM> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CAUSEKNOWN                  |CLOSED
         Resolution|                            |FIXINSOURCE


--- Comment #2 from Anurag S. Maskey <Anurag.Maskey at Sun.COM> 2009-08-21 
15:47:13 UTC ---
getdomainname() return 0 on sucess and -1 on error.  The return value checking
for it was opposite.

 static boolean_t
 test_condition_sys_domain(nwam_condition_t condition, const char *domainname)
 {
        char cur_domainname[MAXHOSTNAMELEN];

-       if (getdomainname(cur_domainname, MAXHOSTNAMELEN) == 0)
+       if (getdomainname(cur_domainname, MAXHOSTNAMELEN) != 0)
                return (B_FALSE);

        return (test_condition_domain(condition, domainname, cur_domainname));
 }

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Reply via email to