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

[leafnode-list] Newsq problems on FreeBSD

I take the liberty of forwarding a message to this list concerning
the problems with newsq.c on FreeBSD 3.3 (Ron is on the list):

----- Forwarded message from Ron 'The InSaNe One' Rosson -----

Here is the output of the make concerning newsq:

/newsq.c: In function `main':
/newsq.c:50: warning: long unsigned int format, different type arg (arg 3)

Here is what the outpu looks like when you run newsq:

insane-the> ./newsq
25671-943312396-1:      608 bytes, spooled (null)       From: Mon Nov 22 15:13:16 1999

        Ngrp: insane@xxxxxxxxxxxxxxxxxxxxx (Ron Rosson)
        Subj: sdnet.test

----- End of forwarded message from Ron 'The InSaNe One' Rosson -----

What strikes me as particularly odd is the odd reference to a nullpointer
in the output which results in all subsequent fields being shifted by one
(i.e. the From: contains the Date of the message, the Newsgroup: contains
the Sender of the message and the Subject: contains the newsgroup). When
looking at the code, I have no sensible explanation for this; the line
which causes all the troubles is

                printf("%s: %8lu bytes, spooled %s\tFrom: %-.66s\n"
                        "\tNgrp: %-.66s\n\tSubj: %-.66s\n",
                        de->d_name, st.st_size, ctime(&st.st_mtime),
                        fgetheader( f, "From:" ),
                        fgetheader( f, "Newsgroups:" ),
                        fgetheader( f, "Subject:" ) );

Any help?


/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany   email: phak004@xxxxxxxxxxxxxxxxxxxxxx  SP4 */
/* "Science is the game we play with God to find out what His rules are."  */

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