summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-18 02:19:25 +0000
committerache <ache@FreeBSD.org>1995-03-18 02:19:25 +0000
commitfa0492e32baad11a81a035184623eeb8fba4d452 (patch)
tree015ca5ce9fe6938a245fc10ae28e8519158ed35c
parentd9d9267f2d57b68bd4f471ea3bffc65a12c8d017 (diff)
downloadFreeBSD-src-fa0492e32baad11a81a035184623eeb8fba4d452.zip
FreeBSD-src-fa0492e32baad11a81a035184623eeb8fba4d452.tar.gz
Don't use user PATH into environment for sec reasons
-rw-r--r--gnu/usr.bin/man/catman/catman.perl6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/man/catman/catman.perl b/gnu/usr.bin/man/catman/catman.perl
index 22a1271..1c9180a 100644
--- a/gnu/usr.bin/man/catman/catman.perl
+++ b/gnu/usr.bin/man/catman/catman.perl
@@ -35,7 +35,7 @@
# Bugs: sure
# Email: Wolfram Schneider <wosch@cs.tu-berlin.de>
#
-# $Id: catman.perl,v 1.1 1995/03/15 22:47:38 joerg Exp $
+# $Id: catman.perl,v 1.2 1995/03/18 02:11:56 ache Exp $
#
sub usage {
@@ -69,7 +69,7 @@ sub variables {
$SIG{'TERM'} = 'Exit';
$tmp = ''; # tmp file
- $ENV{'PATH'} = "/bin:/usr/bin:$ENV{'PATH'}";
+ $ENV{'PATH'} = "/bin:/usr/bin";
}
sub Exit {
@@ -278,7 +278,7 @@ sub parse_subdir {
sub nroff {
local($man,$cat) = @_;
- local($nroff) = "/usr/bin/nroff -Tascii -man | col";
+ local($nroff) = "nroff -Tascii -man | col";
local($dev, $ino) = (stat($man))[01];
# It's a link
OpenPOWER on IntegriCloud