1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/comms/mgetty+sendfax/files/patch-aa
1998-01-26 10:14:48 +00:00

18 lines
399 B
Plaintext

--- 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