openbsd-ports/comms/mgetty+sendfax/patches/patch-aa
1999-08-28 18:13:36 +00:00

18 lines
399 B
Plaintext

--- fax/faxspool.in.orig Sat Jul 24 17:27:25 1999
+++ fax/faxspool.in Sat Aug 28 13:30:14 1999
@@ -313,11 +313,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