Removed the `u word' and replaced it be a call to _osname().
authorGarrett Wollman <wollman@FreeBSD.org>
Fri, 4 Feb 1994 03:03:05 +0000 (03:03 +0000)
committerGarrett Wollman <wollman@FreeBSD.org>
Fri, 4 Feb 1994 03:03:05 +0000 (03:03 +0000)
Added -lutil to link to pick up same.

sbin/fsck/Makefile
sbin/fsck/main.c

index a9ca80c..7a82aeb 100644 (file)
@@ -1,11 +1,12 @@
-#      @(#)Makefile    5.15 (Berkeley) 6/29/90
+#      From: @(#)Makefile      5.15 (Berkeley) 6/29/90
 #
 #
-#      $Header: /a/cvs/386BSD/src/sbin/fsck/Makefile,v 1.3 1993/07/22 16:51:45 jkh Exp $
+#      $Id: /a/cvs/386BSD/src/sbin/fsck/Makefile,v 1.4 1993/07/26 22:47:35 nate Exp $
 
 PROG=  fsck
 MAN8=  fsck.8
 SRCS=  dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
        pass5.c preen.c setup.c utilities.c ufs_subr.c ufs_tables.c
 .PATH: ${.CURDIR}/../../sys/ufs
 
 PROG=  fsck
 MAN8=  fsck.8
 SRCS=  dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
        pass5.c preen.c setup.c utilities.c ufs_subr.c ufs_tables.c
 .PATH: ${.CURDIR}/../../sys/ufs
+LDADD+= -lutil
 
 .include <bsd.prog.mk>
 
 .include <bsd.prog.mk>
index 3e2b728..310cc82 100644 (file)
@@ -39,7 +39,7 @@ char copyright[] =
 
 #ifndef lint
 static char sccsid[] = "@(#)main.c     5.27 (Berkeley) 8/7/90";
 
 #ifndef lint
 static char sccsid[] = "@(#)main.c     5.27 (Berkeley) 8/7/90";
-static char rcsid[] = "$Header: /b/source/CVS/src/sbin/fsck/main.c,v 1.3 1993/03/23 00:27:55 cgd Exp $";
+static char rcsid[] = "$Header: /a/cvs/386BSD/src/sbin/fsck/main.c,v 1.2 1993/07/22 16:51:51 jkh Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -275,9 +275,10 @@ checkfilesys(filesys, mntpt, auxdata, child)
        if (!fsmodified)
                return (0);
        if (!preen) {
        if (!fsmodified)
                return (0);
        if (!preen) {
+               extern char *_osname();
                printf("\n***** FILE SYSTEM WAS MODIFIED *****\n");
                if (hotroot)
                printf("\n***** FILE SYSTEM WAS MODIFIED *****\n");
                if (hotroot)
-                       printf("\n***** REBOOT UNIX *****\n");
+                       printf("\n***** REBOOT %s *****\n", _osname());
        }
        if (hotroot) {
                sync();
        }
        if (hotroot) {
                sync();