[comp.os.minix] Minor bug in init.c

XBR4D75G%DDATHD21.BITNET@cunyvm.cuny.edu (03/19/90)

The updates to 1.5.5 came very late here to our BITNET-node in
Darmstadt (Germany). Nevertheless, I managed last weekend to generate
the new version for both, an AT- and an XT-clone, due to the extra
postings from Bruce Evans (kernel) and Raymond Michiels (include_00) -
thank you very much for this help.

In routine "init.c" of directory "tools", the following correction must
be applied, if you are interested in correct time-stamping in "/usr/adm/wtmp":


*** init.old    Thu Mar 15 14:30:00 1990
--- init.c      Mon Mar 19 14:18:12 1990
***************
*** 345,350 ****
--- 345,351 ----
    struct utmp utmp;           /* UTMP/WTMP User Accounting */
    char *sp = "               ";       /* blank space */
    register int fd;
+   extern long time();

    /* Clear the fields. */
    strncpy(utmp.ut_name, sp, sizeof(utmp.ut_name));

All supplied test ran without problems.

Hans-Juergen Knobloch, (T.H. Darmstadt, West Germany)