X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/b4a56b0ad7d1689e935db1f0f29f6cdfb65961fd..a988826d5cdd58c51ed6c38a0b02d674b6631e76:/ppt/ppt.c?ds=sidebyside diff --git a/ppt/ppt.c b/ppt/ppt.c index cef23a7f..a69a7b27 100644 --- a/ppt/ppt.c +++ b/ppt/ppt.c @@ -1,4 +1,4 @@ -/* $NetBSD: ppt.c,v 1.5 1997/10/10 16:48:39 lukem Exp $ */ +/* $NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $ */ /* * Copyright (c) 1988, 1993 @@ -43,11 +43,13 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: ppt.c,v 1.5 1997/10/10 16:48:39 lukem Exp $"); +__RCSID("$NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $"); #endif #endif /* not lint */ #include +#include +#include int main __P((int, char *[])); static void putppt __P((int)); @@ -60,11 +62,17 @@ main(argc, argv) int c; char *p; + /* Revoke setgid privileges */ + setgid(getgid()); + (void) puts("___________"); if (argc > 1) - while ((p = *++argv) != NULL) + while ((p = *++argv) != NULL) { for (; *p; ++p) putppt((int)*p); + if ((*(argv + 1))) + putppt((int)' '); + } else while ((c = getchar()) != EOF) putppt(c); (void) puts("___________");