Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/pagesize - Add "/sbin" to path so that "sysctl" is f...



details:   https://anonhg.NetBSD.org/src/rev/4a564fb99bb1
branches:  trunk
changeset: 483993:4a564fb99bb1
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Mar 22 17:35:56 2000 +0000

description:
- Add "/sbin" to path so that "sysctl" is found again. Problem noted
  by Patrick Welche in PR bin/9658.
- Use "exec" to start "sysctl" so that we can a meaningful exit code.

diffstat:

 usr.bin/pagesize/pagesize.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 2d6a83823126 -r 4a564fb99bb1 usr.bin/pagesize/pagesize.sh
--- a/usr.bin/pagesize/pagesize.sh      Wed Mar 22 17:32:03 2000 +0000
+++ b/usr.bin/pagesize/pagesize.sh      Wed Mar 22 17:35:56 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: pagesize.sh,v 1.2 1997/10/19 11:53:01 lukem Exp $
+#      $NetBSD: pagesize.sh,v 1.3 2000/03/22 17:35:56 tron Exp $
 #
 # Copyright (c) 1994
 #      The Regents of the University of California.  All rights reserved.
@@ -36,7 +36,7 @@
 #      @(#)pagesize.sh 8.1 (Berkeley) 4/3/94
 #
 
-PATH=/bin:/usr/bin:/usr/sbin
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
 export PATH
 
-sysctl -n hw.pagesize
+exec sysctl -n hw.pagesize



Home | Main Index | Thread Index | Old Index