code: plan9front

Download patch

ref: 2e6a5e704646109a7aaf7dd5a9d3a64475fd0055
parent: cad697d6edfefe3209ebf46d5a6d8751bbb0052f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 22 20:44:44 EST 2020

fax, psfax, vwhois: use $user instead of /dev/user

--- a/rc/bin/fax
+++ b/rc/bin/fax
@@ -46,7 +46,6 @@
 
 script=/tmp/fax.$pid
 header=/tmp/faxh.$pid
-user=`{cat /dev/user}
 tmp=/tmp/fax.g3.$pid
 tmpin=/tmp/fax.in.$pid
 tmpps=/tmp/fax.ps.$pid
--- a/rc/bin/psfax
+++ b/rc/bin/psfax
@@ -24,7 +24,6 @@
 
 script=/tmp/fax.$pid
 header=/tmp/faxh.$pid
-user=`{cat /dev/user}
 tmp=/tmp/page.$pid
 tmpin=/tmp/page.in.$pid
 tel=`{grep '\) '$user /lib/tel}
--- a/rc/bin/vwhois
+++ b/rc/bin/vwhois
@@ -13,5 +13,5 @@
 		plumb -dseemail -a 'filetype=vwhois digest='$i.$pid' mailtype=new sender='$i /mail/fs/$box/XXXvwhois
 }
 if not for (i){
-	echo vwhois: vwhois: vwhois: delivered `{cat /dev/user} From $i '(vwho)' >> /sys/log/mail
+	echo vwhois: vwhois: vwhois: delivered $user From $i '(vwho)' >> /sys/log/mail
 }