From owner-freebsd-audit Thu Jul 5 16:14:44 2001 Delivered-To: freebsd-audit@freebsd.org Received: from coffee.q9media.com (coffee.q9media.com [216.94.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 99B4D37B401 for ; Thu, 5 Jul 2001 16:14:41 -0700 (PDT) (envelope-from mike@coffee.q9media.com) Received: (from mike@localhost) by coffee.q9media.com (8.11.2/8.11.2) id f65NTL110566; Thu, 5 Jul 2001 19:29:21 -0400 (EDT) (envelope-from mike) Date: Thu, 5 Jul 2001 19:29:21 -0400 (EDT) Message-Id: <200107052329.f65NTL110566@coffee.q9media.com> To: audit@FreeBSD.org From: Mike Barcroft Subject: src/sbin/reboot patch Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would appreciate it if someone would review and commit the patch at the end of this message. Also available at: http://testbed.q9media.net/freebsd/reboot.20010705.patch Best regards, Mike Barcroft ----------------------------------------------------------------------- reboot.20010705.patch o Consify o Set WARNS?=2 o Untest on Alpha Index: reboot/Makefile =================================================================== RCS file: /home/ncvs/src/sbin/reboot/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- reboot/Makefile 2001/03/26 14:33:21 1.7 +++ reboot/Makefile 2001/07/05 23:12:04 @@ -2,6 +2,7 @@ # $FreeBSD: src/sbin/reboot/Makefile,v 1.7 2001/03/26 14:33:21 ru Exp $ PROG= reboot +WARNS?= 2 DPADD= ${LIBUTIL} LDADD= -lutil MAN= reboot.8 boot_i386.8 Index: reboot/reboot.c =================================================================== RCS file: /home/ncvs/src/sbin/reboot/reboot.c,v retrieving revision 1.12 diff -u -r1.12 reboot.c --- reboot/reboot.c 2001/06/24 23:04:18 1.12 +++ reboot/reboot.c 2001/07/05 23:12:05 @@ -70,7 +70,8 @@ struct passwd *pw; int ch, howto, i, lflag, nflag, qflag, pflag, sverrno; u_int pageins; - char *p, *user; + char *p; + const char *user; if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) { dohalt = 1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message