#!/bin/sh
# $Id: user.sh,v 1.3 2004/12/29 23:47:29 ca Exp $
# Copyright (c) 2003, 2004 Sendmail, Inc. and its suppliers.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
# ---------------------------
# try to figure out user name
# ---------------------------
USER=${USER:-`logname`}
if test X"${USER}" = X
then
PATH="${PATH}":/usr/ucb
export PATH
USER=`whoami`
fi
export USER
syntax highlighted by Code2HTML, v. 0.9.1