Subject: bin/3298: send-pr problems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <era@iki.fi>
List: netbsd-bugs
Date: 03/06/1997 11:24:31
>Number: 3298
>Category: bin
>Synopsis: send-pr bug in Originator: extraction; also various minor comments
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 6 16:50:02 1997
>Last-Modified:
>Originator: era eriksson
>Organization:
People Who Are Not Old Enough for Unix (Honorary Member Emeritus)
>Release: 1.2
>Environment:
Stock 1.2 #1
System: NetBSD hello 1.2 NetBSD 1.2 (GENERIC) #1: Wed Sep 11 00:43:55 CDT 1996 scottr@spot:/usr/src/sys/arch/mac68k/compile/GENERIC mac68k
>Description:
send-pr would find the first match on my $LOGNAME, era, in
/etc/passwd, and assume that was my record. Well it's not.
Diffs below.
Also, the comments at the beginning of the send-pr report as I
see it right now would be nice to have customized. I know
somebody already complained about the lack of documentation
for send-pr but seeing as the "Choose from the following
categories" part is already customized, why not fix the part
that implies that there is a send-pr(1) man page? (Or why not
just include the man page in the distribution? Do you need a
volunteer to customize it?) If a custom page is made, it
should probably outline what the categories are supposed to
mean.
-*- send-pr -*- confuses Emacs when there is in fact no
send-pr-mode installed.
Apparently part of this report should go to the GNATS team but
I hope you can forward it to them. Thanks.
>How-To-Repeat:
$ echo $LOGNAME
era
$ sed -e /"$LOGNAME"/'{s/^\([^:]*\):.*/\1/' -e q -e } -e d /etc/passwd
operator
>Fix:
*** /usr/bin/send-pr Wed Sep 11 04:15:48 1996
--- /tmp/send-pr Thu Mar 6 11:07:59 1997
***************
*** 106,112 ****
elif [ -f $HOME/.fullname ]; then
ORIGINATOR="`sed -e '1q' $HOME/.fullname`"
else
! ORIGINATOR=`$PASSWD | sed -e /"$LOGNAME"/'{s/^[^:]*:[^:]*:[^:]*:[^:]*:\([^,:;]*\).*$/\1/' -e q -e } -e d`
case "$ORIGINATOR" in
*'&'*)
TEMP=`echo $LOGNAME | tr '[a-z]' '[A-Z]'`
--- 106,112 ----
elif [ -f $HOME/.fullname ]; then
ORIGINATOR="`sed -e '1q' $HOME/.fullname`"
else
! ORIGINATOR=`$PASSWD | sed -e /^"$LOGNAME":/'{s/^[^:]*:[^:]*:[^:]*:[^:]*:\([^,:;]*\).*$/\1/' -e q -e } -e d`
case "$ORIGINATOR" in
*'&'*)
TEMP=`echo $LOGNAME | tr '[a-z]' '[A-Z]'`
>Audit-Trail:
>Unformatted: