[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] leafnode does not display groups



On Fri, Apr 21, 2000 at 10:03:51AM +0200, david van zeebroeck wrote:
> ran fetchnews -vvv -f
> no problem there it created a groupfile with entries like this :
> 3dfx.d3d 1u 1u 0u -x-
            ^  ^  ^
Arghh! Cornelius' snprintf only understands %ul and not %lu. I
attached a quick & dirty patch to make leafnode-1.9.13 work on
Digital Unix and probably also on your Sparc. Cornelius, note
that your snprintf() needs to be fixed. The patch will break
leafnode on any system with its own snprintf(3).

> so still no luck

I could retrieve the active and succesfully issue the GROUP
command. So it will most likely work now for you.

Regards,
	Jo:rg

*** activutil.c.orig    Fri Apr 21 23:02:08 2000
--- activutil.c Fri Apr 21 23:06:17 2000
***************
*** 188,194 ****
      while ( ( err != EOF ) && g->name ) {
        if ( strlen( g->name ) ) {
            snprintf( l, PATH_MAX,
!                     "%s %lu %lu %lu %s\n", g->name, g->last, g->first,
                      (unsigned long) g->age,
                      g->desc && *(g->desc) ? g->desc : "-x-" );
            err = fputs( l, a );
--- 188,194 ----
      while ( ( err != EOF ) && g->name ) {
        if ( strlen( g->name ) ) {
            snprintf( l, PATH_MAX,
!                     "%s %ul %ul %ul %s\n", g->name, g->last, g->first,
                      (unsigned long) g->age,
                      g->desc && *(g->desc) ? g->desc : "-x-" );
            err = fputs( l, a );

-- 
Fortune cookie of the day:
Four thousand different MAGNATES, MOGULS & NABOBS are romping in my
gothic solarium!!

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list