From f85ff945805f01be2d2a979f9894b4154373a74e Mon Sep 17 00:00:00 2001 From: abs Date: Tue, 15 Jun 1999 05:44:22 +0000 Subject: [PATCH] Don't don't don't assume /usr/bin/id is always present. Loses in single user. --- etc/root/dot.cshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc index 62b3784278ea..fe863d6d9854 100644 --- a/etc/root/dot.cshrc +++ b/etc/root/dot.cshrc @@ -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 pd3 pushd +3 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