View | Details | Raw Unified | Return to bug 24372
Collapse All | Expand All

(-)send-pr.sh (-3 / +3 lines)
Lines 58-65 Link Here
58
# host-dependent.
58
# host-dependent.
59
MAIL_AGENT="${MAIL_AGENT:-/usr/sbin/sendmail -oi -t}"
59
MAIL_AGENT="${MAIL_AGENT:-/usr/sbin/sendmail -oi -t}"
60
60
61
# How to read the passwd database.
61
# Path to pw(8)
62
PASSWD="cat /etc/passwd"
62
PW="/usr/sbin/pw"
63
63
64
ECHON=bsd
64
ECHON=bsd
65
65
Lines 97-103 Link Here
97
  PTEMP=`mktemp -t p` || exit 1
97
  PTEMP=`mktemp -t p` || exit 1
98
  # Must use temp file due to incompatibilities in quoting behavior
98
  # Must use temp file due to incompatibilities in quoting behavior
99
  # and to protect shell metacharacters in the expansion of $LOGNAME
99
  # and to protect shell metacharacters in the expansion of $LOGNAME
100
  $PASSWD | grep "^$LOGNAME:" | awk -F: '{print $5}' | sed -e 's/,.*//' > $PTEMP
100
  $PW usershow $LOGNAME | awk -F: '{ print $8 }' | sed -e 's/,.*//' > $PTEMP
101
  ORIGINATOR="`cat $PTEMP`"
101
  ORIGINATOR="`cat $PTEMP`"
102
  rm -f $PTEMP
102
  rm -f $PTEMP
103
fi
103
fi

Return to bug 24372