copy in from cvs; cvs2svn fucked up big time

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2003-12-19 19:12:08 +00:00
parent 351c8ca204
commit 51eabc017b
310 changed files with 7852 additions and 5005 deletions

12
dm/dm.c
View File

@@ -1,4 +1,5 @@
/* $NetBSD: dm.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $ */
/* $NetBSD: dm.c,v 1.17 2002/08/02 03:06:24 christos Exp $ */
/* For Linux: still using old utmp interface from version 1.16. */
/*
* Copyright (c) 1987, 1993
@@ -43,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
#if 0
static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: dm.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $");
__RCSID("$NetBSD: dm.c,v 1.17 2002/08/02 03:06:24 christos Exp $");
#endif
#endif /* not lint */
@@ -83,7 +84,7 @@ int users __P((void));
int
main(argc, argv)
int argc __attribute__((unused));
int argc __attribute__((__unused__));
char *argv[];
{
char *cp;
@@ -116,10 +117,7 @@ play(args)
{
char pbuf[MAXPATHLEN];
(void)strncpy(pbuf, _PATH_HIDE, sizeof(pbuf) - 1);
(void)strncpy(pbuf + sizeof(_PATH_HIDE) - 1, game,
sizeof(pbuf) - sizeof(_PATH_HIDE) - 1);
pbuf[sizeof(pbuf) - 1] = '\0';
snprintf(pbuf, sizeof(pbuf), "%s%s", _PATH_HIDE, game);
if (priority > 0) /* < 0 requires root */
(void)setpriority(PRIO_PROCESS, 0, priority);
execv(pbuf, args);