Source-Changes-HG archive

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

[src/trunk]: src/etc/root Don't don't don't assume /usr/bin/id is always pres...



details:   https://anonhg.NetBSD.org/src/rev/3903dc483050
branches:  trunk
changeset: 473683:3903dc483050
user:      abs <abs%NetBSD.org@localhost>
date:      Tue Jun 15 05:44:22 1999 +0000

description:
Don't don't don't assume /usr/bin/id is always present. Loses in single user.

diffstat:

 etc/root/dot.cshrc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0e7c8c63d54a -r 3903dc483050 etc/root/dot.cshrc
--- a/etc/root/dot.cshrc        Tue Jun 15 04:50:28 1999 +0000
+++ b/etc/root/dot.cshrc        Tue Jun 15 05:44:22 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.cshrc,v 1.9 1998/01/10 00:51:56 perry Exp $
+#      $NetBSD: dot.cshrc,v 1.10 1999/06/15 05:44:22 abs Exp $
 
 set history=1000
 set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
@@ -24,7 +24,7 @@
 alias  pd4     pushd +4
 alias  tset    'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars'
 
-if ($?prompt) then
+if ($?prompt && -x /usr/bin/id ) then
        if (`/usr/bin/id -u` == 0) then
                set prompt="`hostname -s`# "
        else



Home | Main Index | Thread Index | Old Index