Package: samba
Version: 3.0.23b-2
Followup-For: Bug #382429

Here's a very naive approach at resolving the issue with the
autobuilders:
---
--- source/lib/interfaces.c     2005-07-28 15:19:45.000000000 +0200
+++ interfaces.c.naive-fix      2006-08-20 23:58:41.000000000 +0200
@@ -397,7 +397,7 @@
        int i;

        printf("got %d interfaces:\n", total);
-       if (total <= 0) exit(1);
+       if (total < 0) exit(1);

        for (i=0;i<total;i++) {
                printf("%-10s ", ifaces[i].name);
---
This should do the job; according to the buildd logs posted, one method (the
correct one?) returns "0", the other one returns "-1" interfaces.

The interface enumeraion methods should return -1 on error (e.g. ioctl doesn't
work). Maybe ask upstream if this diff makes sense.
On the vserver buildds, a total of "0" is perfectly valid, after all.

That should be the easiest fix...

Regards,
Erich


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to