1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/comms/mgetty+sendfax/files/patch-aa

18 lines
399 B
Plaintext
Raw Normal View History

--- fax/faxspool.in.orig Fri Aug 8 21:43:55 1997
+++ fax/faxspool.in Mon Dec 29 22:31:59 1997
@@ -299,11 +299,11 @@
# user name (for authentification)
##########
-if user=`logname 2>/dev/null`
-then :
+if [ `id -u` = 0 ]; then
+ user=root
else
id=`id`
- user=`expr "$id" : "[^( ]*(\([^)]*\)"`
+ user=`logname`
fi
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER