merge lite-2 changes, RCSid police
This commit is contained in:
parent
257d26f174
commit
35c642e5b1
@ -1,5 +1,5 @@
|
||||
# from: @(#)Makefile 5.3 (Berkeley) 5/11/90
|
||||
# $Id: Makefile,v 1.3 1994/12/22 11:44:54 cgd Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $NetBSD: Makefile,v 1.4 1997/07/23 06:31:43 mikel Exp $
|
||||
|
||||
PROG= trpt
|
||||
MAN= trpt.8
|
||||
|
@ -1,5 +1,7 @@
|
||||
.\" Copyright (c) 1983, 1991 The Regents of the University of California.
|
||||
.\" All rights reserved.
|
||||
.\" $NetBSD: trpt.8,v 1.7 1997/07/23 06:31:44 mikel Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1983, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
@ -29,10 +31,9 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)trpt.8 6.5 (Berkeley) 3/16/91
|
||||
.\" $Id: trpt.8,v 1.6 1997/01/19 10:52:20 tls Exp $
|
||||
.\" @(#)trpt.8 8.2 (Berkeley) 12/11/93
|
||||
.\"
|
||||
.Dd March 16, 1991
|
||||
.Dd December 11, 1993
|
||||
.Dt TRPT 8
|
||||
.Os BSD 4.2
|
||||
.Sh NAME
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* $NetBSD: trpt.c,v 1.4 1997/07/23 06:31:44 mikel Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -32,14 +34,17 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
char copyright[] =
|
||||
"@(#) Copyright (c) 1983, 1988 Regents of the University of California.\n\
|
||||
All rights reserved.\n";
|
||||
static char copyright[] =
|
||||
"@(#) Copyright (c) 1983, 1988, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)trpt.c 5.14 (Berkeley) 7/1/91";*/
|
||||
static char rcsid[] = "$Id: trpt.c,v 1.3 1994/12/23 16:35:50 cgd Exp $";
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)trpt.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: trpt.c,v 1.4 1997/07/23 06:31:44 mikel Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -159,6 +164,11 @@ main(argc, argv)
|
||||
argc--, argv++;
|
||||
++kflag;
|
||||
}
|
||||
/*
|
||||
* Discard setgid privileges if not the running kernel so that
|
||||
* bad guys can't print interesting stuff from kernel memory.
|
||||
*/
|
||||
setgid(getgid());
|
||||
}
|
||||
else
|
||||
system = _PATH_UNIX;
|
||||
|
Loading…
Reference in New Issue
Block a user