diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-20 06:11:00 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-20 06:11:00 +0000 |
commit | d9c77a47a8943b4d56cc22c6abe57334f72ab093 (patch) | |
tree | 57586b2586141380144dff6d63e8062ee960e61e /gnu | |
parent | 63ae1932b06c580ba74685664271d364a0559133 (diff) |
replace & in gecos with username, closes pr #695
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/sendbug/sendbug.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/sendbug/sendbug.sh b/gnu/usr.bin/sendbug/sendbug.sh index 7ba3d56efdc..5a33d3c1f35 100644 --- a/gnu/usr.bin/sendbug/sendbug.sh +++ b/gnu/usr.bin/sendbug/sendbug.sh @@ -21,7 +21,7 @@ # along with GNU GNATS; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # -# $OpenBSD: sendbug.sh,v 1.7 1997/09/11 08:27:02 niklas Exp $ +# $OpenBSD: sendbug.sh,v 1.8 1999/01/20 06:10:59 millert Exp $ # The version of this send-pr. VERSION=3.97 @@ -75,11 +75,11 @@ umask 077 if [ -f /bin/domainname ]; then if [ "`/bin/domainname`" != "" -a -f /usr/bin/ypcat ]; then PASSWD="/usr/bin/ypcat passwd 2>/dev/null | cat - /etc/passwd | grep '^$LOGNAME:' | - cut -f5 -d':' | sed -e 's/,.*//'" + cut -f5 -d':' | sed -e 's/,.*//' -e 's/\&/$LOGNAME/g'" fi fi if [ "$PASSWD" = "" ]; then - PASSWD="cat /etc/passwd | grep '^$LOGNAME:' | cut -f5 -d':' | sed -e 's/,.*//'" + PASSWD="cat /etc/passwd | grep '^$LOGNAME:' | cut -f5 -d':' | sed -e 's/,.*//' -e 's/\&/$LOGNAME/g'" fi if [ "`echo -n foo`" = foo ]; then |