X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/04f4d7044367099914cf1906ae27ac20c24e44cf..29a87ab833bc1b9214ec69d8c84421d5529038b7:/morse/morse.c diff --git a/morse/morse.c b/morse/morse.c index d9086e8e..f97de689 100644 --- a/morse/morse.c +++ b/morse/morse.c @@ -1,4 +1,4 @@ -/* $NetBSD: morse.c,v 1.7 1999/09/08 21:17:53 jsm Exp $ */ +/* $NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $ */ /* * Copyright (c) 1988, 1993 @@ -43,12 +43,13 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #if 0 static char sccsid[] = "@(#)morse.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: morse.c,v 1.7 1999/09/08 21:17:53 jsm Exp $"); +__RCSID("$NetBSD: morse.c,v 1.10 2000/07/03 03:57:42 matt Exp $"); #endif #endif /* not lint */ #include #include +#include #include #include @@ -114,6 +115,9 @@ main(argc, argv) int ch; char *s, *p; + /* Revoke setgid privileges */ + setgid(getgid()); + while ((ch = getopt(argc, argv, "ds")) != -1) switch((char)ch) { case 'd':