mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Delete cribbage logging. Was never enabled and no point in enabling it.
ok tedu@
This commit is contained in:
parent
667c0cc9cc
commit
fb604f4523
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2002/05/31 03:46:35 pjanzen Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2015/03/12 02:19:10 bentley Exp $
|
||||
|
||||
PROG= cribbage
|
||||
DPADD= ${LIBCURSES}
|
||||
LDADD= -lcurses
|
||||
SRCS= extern.c crib.c cards.c instr.c io.c score.c support.c
|
||||
MAN= cribbage.6
|
||||
BINMODE=2555
|
||||
|
||||
beforeinstall:
|
||||
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: crib.c,v 1.17 2013/10/25 18:31:29 millert Exp $ */
|
||||
/* $OpenBSD: crib.c,v 1.18 2015/03/12 02:19:10 bentley Exp $ */
|
||||
/* $NetBSD: crib.c,v 1.7 1997/07/10 06:47:29 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
@ -48,15 +48,6 @@ main(int argc, char *argv[])
|
||||
{
|
||||
bool playing;
|
||||
int ch;
|
||||
#ifdef LOGGING
|
||||
FILE *f;
|
||||
gid_t egid;
|
||||
|
||||
egid = getegid();
|
||||
setegid(getgid());
|
||||
#else
|
||||
setgid(getgid());
|
||||
#endif
|
||||
|
||||
while ((ch = getopt(argc, argv, "emqr")) != -1)
|
||||
switch (ch) {
|
||||
@ -121,20 +112,7 @@ main(int argc, char *argv[])
|
||||
playing = (getuchar() == 'Y');
|
||||
} while (playing);
|
||||
|
||||
#ifdef LOGGING
|
||||
setegid(egid);
|
||||
if ((f = fopen(_PATH_LOG, "a")) != NULL) {
|
||||
(void)fprintf(f, "%s: won %5.5d, lost %5.5d\n",
|
||||
getlogin(), cgames, pgames);
|
||||
(void) fclose(f);
|
||||
}
|
||||
setegid(getgid());
|
||||
bye();
|
||||
if (!f)
|
||||
errx(1, "can't open %s", _PATH_LOG);
|
||||
#else
|
||||
bye();
|
||||
#endif
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: cribbage.6,v 1.14 2015/02/18 02:16:59 bentley Exp $
|
||||
.\" $OpenBSD: cribbage.6,v 1.15 2015/03/12 02:19:10 bentley Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -29,7 +29,7 @@
|
||||
.\"
|
||||
.\" @(#)cribbage.6 8.1 (Berkeley) 5/31/93
|
||||
.\"
|
||||
.Dd $Mdocdate: February 18 2015 $
|
||||
.Dd $Mdocdate: March 12 2015 $
|
||||
.Dt CRIBBAGE 6
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -195,9 +195,6 @@ the following could be typed:
|
||||
.Sq king of diamonds .
|
||||
.Sh FILES
|
||||
.Bl -tag -width /usr/share/games/cribbage.instr -compact
|
||||
.It Pa /var/games/criblog
|
||||
log file
|
||||
.Pq if logging is enabled
|
||||
.It Pa /usr/share/games/cribbage.instr
|
||||
instructions
|
||||
.El
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pathnames.h,v 1.4 2003/06/03 03:01:39 millert Exp $ */
|
||||
/* $OpenBSD: pathnames.h,v 1.5 2015/03/12 02:19:10 bentley Exp $ */
|
||||
/* $NetBSD: pathnames.h,v 1.3 1995/03/21 15:08:56 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
@ -33,7 +33,4 @@
|
||||
*/
|
||||
|
||||
#define _PATH_INSTR "/usr/share/games/cribbage.instr"
|
||||
#ifdef LOGGING
|
||||
#define _PATH_LOG "/var/games/criblog"
|
||||
#endif
|
||||
#define _PATH_MORE "/usr/bin/more"
|
||||
|
Loading…
Reference in New Issue
Block a user