OSSP CVS Repository

ossp - Check-in [2498]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2498
Date: 2002-Aug-06 14:55:06 (local)
2002-Aug-06 12:55:06 (UTC)
User:thl
Branch:
Comment: fixed %N on solaris "... successful ... non-negative ... Otherwise, -1 ..."
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_ch_prefix.c      1.21 -> 1.22     1 inserted, 1 deleted

ossp-pkg/l2/l2_ch_prefix.c 1.21 -> 1.22

--- l2_ch_prefix.c       2002/07/30 19:08:24     1.21
+++ l2_ch_prefix.c       2002/08/06 12:55:06     1.22
@@ -112,7 +112,7 @@
                     break;
                 }
                 case 'N': {
-                    if (uname(&uts) == 0)
+                    if (uname(&uts) != -1)
                         l2_util_sprintf(caBuf, sizeof(caBuf), uts.nodename);
                     else
                         l2_util_sprintf(caBuf, sizeof(caBuf), "localhost");

CVSTrac 2.0.1