Date: Thu, 5 Jul 2001 19:29:21 -0400 (EDT) From: Mike Barcroft <mike@q9media.com> To: audit@FreeBSD.org Subject: src/sbin/reboot patch Message-ID: <200107052329.f65NTL110566@coffee.q9media.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107052329.f65NTL110566>